Solved

hooking up event sinks to events that an EXE exposes

Posted on 1998-10-21
1
173 Views
Last Modified: 2010-04-30
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
Comment
Question by:Narayan
1 Comment
 
LVL 1

Accepted Solution

by:
zivf earned 100 total points
ID: 1440986
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question