I want to use the VB6 command line compiler to compile a project I have that I need to compile 3 times with different conditional compilation arguments.
I got the command line compiler to work, but if I call it 3 times in a row, it only builds the first one and the second 2 fail because its still compiling the first one.
What method can I use to determine when the first compilation is done, so that the code can then call the second, and then the third.
How about creating a small simple vb program to do a
CreateProcessA with a WaitForSingleObject API calls in a loop
changing the compilation argument each time???
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
yeah i thought about using waitforsingleobject only problem is (and I will test it), I think when u launch VB6 with command line compile arguments, it calls C2.exe which is the actual compiler...
How about shellexecute CMD.exe with the /K parameter and your
commandline arguments. Then waitforsingleobject or something
similar to get around vb using the c2.exe? Kind of fool vb into
thinking it is being executed from the command line.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.