|
-
Jul 5th, 2000, 07:04 AM
#1
Thread Starter
Junior Member
Hi All,
I am using Visual Basic 6.0 (SP3). I have created two Standard EXE projects. I want one exe is called by another one. While calling i have to pass a value to the second exe which is being called. How can i pass the value from one exe to another exe? Thanks for any help.
Sujatha
-
Jul 5th, 2000, 07:19 AM
#2
Lively Member
If using standard exe's, you could pass the data in a command line.
Code:
Sub RunOtherApp()
Dim sSendSomeData As String
sSendSomeData = "Here it is"
Shell "SecondApp.exe " & sSendSomeData
End Sub
Then in the second app to get the data
Code:
Private Sub Form_Load()
Dim sGotSomeData As String
sGotSomeData = Command$
End Sub
-
Jul 5th, 2000, 07:21 AM
#3
Lively Member
Hi,
use command line parameters.
Call of other exe:
Code:
shell "myprog.exe parameters"
Get parameters in called EXE:
Code:
strParameterString = Command$
Roger
-
Jul 6th, 2000, 01:31 AM
#4
Or you could always write to a file with one program and have the other read the information.
-
Jul 6th, 2000, 01:39 AM
#5
transcendental analytic
OR use the Registry
Or send messages
Or use DDE
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|