Solved

hooking up event sinks to events that an EXE exposes

Posted on 1998-10-21
1
175 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RUNRMTCMD from AS/400 13 122
Assign a value in Excel V-Basic 3 36
Modify Text File with Excel Macro 13 43
why PtrSafe before Function on 64bit does not fix the APIs? 2 23
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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