Solved

hooking up event sinks to events that an EXE exposes

Posted on 1998-10-21
1
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

729 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