|
-
May 7th, 2003, 07:51 AM
#1
Thread Starter
Junior Member
argument to dll on execution
Hi all.
I need to send a string to my program upon execution. The string is a file name that the program needs to read.
How can I do this?
also... can I send the string to a dll? can the dll be executable?
I suppose the program sholud be called from MS-DOS... but how do I type?
And how do I code to accept the argument.
I really need your help here guys!
BIG LOVE!
/David N. Sweden
-
May 7th, 2003, 08:25 AM
#2
you dont execute dll's. You instanciate the dll from your app and pass whatever data you need as a parameter when calling a function in the dll.
Sub Main in your exe can have a string array as a parameter. That arrayu will contain your command line arguements
-
May 7th, 2003, 08:31 AM
#3
Thread Starter
Junior Member
ok... thanks Cander...
So how do I type if I want my applictaion to use "filenme.xml" in my application?
something like (in cmd prompt)
MyApp "filename.xml"?
-
May 7th, 2003, 08:43 AM
#4
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
|