Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 3rd, 2007, 01:57 PM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thew00tman
Default Help Needed

I have an application I have made, and it creates a "file" which is just a file that contains text with a custom extension on it (.dck)... When I build my installer for the program I will associate the extension .dck with my program, so when you double click on the file it opens my program.

My problem is that I don't know how to say "Do stuff with the file when my application is opened by double clicking on the file"

Help would be appreciated.

Thanks

You don't know.
 
Old April 3rd, 2007, 02:02 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Are you asking how to setup a file association in windows so that once your application is installed, windows will recognize these files as belonging to your app? Interesting file extenstion choice btw.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 3rd, 2007, 05:13 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

The application will be started with a command line argument. You need to process that argument.

There is an item in VB Command$, that hols the entire command line.

If you have a routine (on a menu pick, or whatever), trigger that routine with the filename you find in the command line.

By the way, please read Doug’s link (above), "Read this if you want to know how to get a correct reply for your question," regarding choosing a subject line; I believe it will make a lot of sense to you.
 
Old April 6th, 2007, 01:36 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thew00tman
Default

Thanks a lot guys :D

I got it all figured out.

You don't know.
 
Old April 6th, 2007, 12:42 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

?
 
Old April 6th, 2007, 01:44 PM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thew00tman
Default

if your wondering about the "You don't know." thats just my signature...

but don't worry, i fixed it so it doesn't look like part of the post :P

---------------
You don't know.
---------------
 
Old April 6th, 2007, 03:56 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Ahh — Got it; thanks for the clarification.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed ramabharti Javascript How-To 1 December 7th, 2006 06:42 AM
Help needed rrvinod ADO.NET 0 October 5th, 2006 09:44 AM
help needed! paquito Beginning PHP 2 November 16th, 2005 11:51 AM
A Little help needed matthew01 ASP.NET 1.0 and 1.1 Basics 3 November 9th, 2005 11:29 AM
help needed kfarooq Java Databases 1 June 27th, 2003 05:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.