|
-
Mar 2nd, 2002, 04:20 PM
#1
Thread Starter
New Member
getting an argument from Main
Does any one know of a way I can send arguments to a VB app. Example: By double clicking on a .doc it will open MsWord with the doc file loaded. I have made the association in Windows but I don't know how to get the argument or file name from system. I have tried the getcommandstring() api and I guess I could make that work but it would take alot of programming.
-
Mar 3rd, 2002, 06:03 AM
#2
Command$ returns the command line in VB
ShellExecuteEx is what opens associated files. I'm assuming you have associated a file type with your VB app. When you double-click on the file, and your VB app opens, right?
On double-click the shell places the filename as the first commandline parm in a call to your code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|