|
-
June 30th, 2001, 01:35 AM
#1
Pass information
Hello,
How can I pass an information from one .exe file to another.
Ex:- If I select a picture name in one .exe file, the selected picture should be displayed from the picture box of another .exe file.
Thankz
-
July 1st, 2001, 04:35 PM
#2
Re: Pass information
you can pass it by command line. like:
mydir\myprog.exe mypic.jpg
----------
The @host is everywhere!
----------
-
July 2nd, 2001, 05:05 AM
#3
Re: Pass information
Thanks for u'r information.
kindly brief me more details.
-
July 2nd, 2001, 11:21 AM
#4
Re: Pass information
try playing with that code:
Sub CheckCommandLine()
Dim sCmdLine as string
sCmdLine = Trim$(LCase$(Command$))
If Right$(sCmdLine, 4) <> ".exe" then
End
else
MsgBox "file found!"
'your call to a function goes here or
'something else
End If
End Sub
I haven't checked this code but i think it should work
----------
The @host is everywhere!
----------
-
July 2nd, 2001, 11:27 AM
#5
Re: Pass information
If both executables are written by you, can I recommend passing information by sending a registered message?
What you need to do is call RegisterWindowMessage() with the name of your message then send that message using the PostMessage() api call. The name of the file to load is stored in a global memory block whose adress is passed to the callee in th elParam parameter of that message.
That's how windows does it...
HTH,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
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
|