• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

hooking up event sinks to events that an EXE exposes

I have written an EXE servers which exposes certain events. I want to hook up the event sinks in Vb to the events fired by the EXE
0
Narayan
Asked:
Narayan
1 Solution
 
zivfCommented:
You should expose them through the COM interface (in the idl/odl file if you wrote it in VC).
if the class you created is a visual one (a control in the VB language) then you should draw it on a form, and when you'll double-click it, you'll get to the events list in the code module.
If it is a non-visual class (see rdoResultset and rdoConnection) you should Dim it with the WithEvents Keyword in the code module of a class (or form class), and when you'll see the name of the variable in the left combo of the code module, the events will appear on the right.
a procedure will be created in the code, and this is the callback function.
I would also like you to email me very much, I have a question from the other side of the server I think you have an answer to.
my email is ziv@pidcgroup.com
 thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now