|
-
Sep 14th, 2000, 05:29 AM
#1
Launch new process and wait for it... example in vb-world.net seems not to compile
1st of all, I'm a beginner so please bear with me incase there's something I'm missing completely...
I wish to launch a process from within my program written in vb6. I am unable to use the code shown when searching for 'shell' on vb-world.com
This uses the API process functions to launch and wait for it to return. It does launch, but does not wait for the process to terminate, leaving me no better off than 'Shell'.
And.. I can only get the example to work if I place the declarations in the module declaration area rather than the frmMain declaration area, and even then I have to replace the private cast with public to allow my code to 'see' these functions from elsewhere. If the declarations are placed in my frmMain code, I am presented with an error such as 'cannot use private enums in a public call' or somesuch.
Help!
Regards
Gary Thomlinson
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
|