borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Draw a soft line)Next Topic (Windows Task Manager - Applications Tab) New Topic New Poll Post Reply
AndreaVB Forum : API : Launch VB via shell execute
Poster Message
Saga
Level: Trainee

Registered: 21-07-2005
Posts: 2

icon Launch VB via shell execute

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

21-07-2005 at 09:18 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Launch VB via shell execute

Hi

Try this link

http://www.andreavb.com/forum/viewtopic.php?TopicID=3891

Steve  

21-07-2005 at 11:20 AM
View Profile Send Email to User Show All Posts | Quote Reply
Saga
Level: Trainee

Registered: 21-07-2005
Posts: 2
icon Re: Launch VB via shell execute

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

26-07-2005 at 08:09 AM
View Profile Send Email to User Show All Posts | Quote Reply
steve_w
Level: Moderator


Registered: 18-04-2003
Posts: 1156
icon Re: Launch VB via shell execute

Hi

It should not matter how you launch the program. Put the following line in the program that you are executing by the shellexecute

msgbox Command


Steve  

26-07-2005 at 08:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Launch VB via shell execute
Previous Topic (Draw a soft line)Next Topic (Windows Task Manager - Applications Tab) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder