AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile
Hi, I`m quite new to VB. I found a lot of help to launch other programms from VB. What I want to do is launch a VB.exe via shell execute from another programm. Question is how I can pass data to the VB.exe and use it there for further processing and what do I need to declare? A small sample code or a link to a webside would be great. Saga
Hi Try this link http://www.andreavb.com/forum/viewtopic.php?TopicID=3891 Steve
Helps a little bit. I think I need to be a little bit more specific. I want to pass data via ShellExecute ShellExecutea(hWnd:lpOperation:lpCmdStg:lpcParms:lpcDir:0) LPOperation = 'Open' LPCmdStg = 'myVBProg.exe' in LPcparms is the data which I want to pass f.e.: LPCParms = 'Username' Now I want to have the 'Username' in my vbprogramme. Does the following code: void programmStart() { system("myVBProg.exe parameter"); } that Parameter is now 'Username'. Is this correct or if not how can I get 'Username' to vb via shellexecute? Saga
Hi It should not matter how you launch the program. Put the following line in the program that you are executing by the shellexecute