|
-
August 22nd, 1999, 10:05 PM
#1
How do I send message between windows?
Here is what I want to do:
1. execute an execution file, phoneBook.exe, which was written in VB 6.0 from a window which was created by VC++
2. phoneBook.exe shows a phone book dialog which allows user to select a phone number. After the selection, it will notify the calling window and pass back the phone Number user selected .
my questions are how do I:
1. notify the calling window that the job is completed
2. pass the phone number back to VC++ window?
Thanks in advance.
Tiffany Chen
-
August 23rd, 1999, 03:06 AM
#2
Re: How do I send message between windows?
I'd write the VB application as an ActiveX exe. That way you can use it as a stand-alone application and still use it via automation from another app (your VC app).
You could write a public class module with a public property like
public property get PhoneNumber() as string
' show modal dialog for selecting phone number
PhoneNumber = selectedPhoneNumber
end property
It should be fairly easy to use the VB app for automation in your VC app, because you can import the type library.
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
|