Explorer060599
asked on
Delphi Com Object communicate with VB
hi experts, i would like to write delphi com object that communicate with external vb program. what this com
object does is just retrieve data from database and pass value of string or variant to vb program. how
do i pass the information to vb program ?
itsn't i need to create the event in delphi com object and fire it when i need to pass to vb program.
on other side, vb program need to catch the event. right ? any example code or info sites ? any help would appreciated. thanks.
eddie
object does is just retrieve data from database and pass value of string or variant to vb program. how
do i pass the information to vb program ?
itsn't i need to create the event in delphi com object and fire it when i need to pass to vb program.
on other side, vb program need to catch the event. right ? any example code or info sites ? any help would appreciated. thanks.
eddie
Listening... (do you HAVE to use events? Couldnt the VB program ask for the DB lookup (GetData function or something), and wait for it to finish?)
ASKER
because i want to notify vb program when necessary only. is GetData a standard function implemented in com ?
No, GetData was just an example. I've never made events in COM, so I cant help you there. Just following the thread :o)
ASKER
other than event, anyother method use for notification to external vb program ?
Lots I guess... The simplest could be a Windows event (wrapped in TEvent). You can use events systemwide. VB waits for the event, and when the Delphi COM object sets it, you can call a function to retrieve the data.
I hardly know anything about VB, but I assume you can use events.
I hardly know anything about VB, but I assume you can use events.
ASKER
yes, that's what i wants. can i have a example code of delphi com object to create event ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.