|
-
Nov 13th, 2001, 04:15 AM
#1
Thread Starter
New Member
ActiveX wrapper with Callbacks
I am trying to write an ActiveX control in VB that wraps a 'c' based dll. The basic requirement is for a callback 'event' from the dll to generate an 'event' from the ActiveX control.
The problem I have is that to use callbacks and the 'AddressOf' operator the callback code must be in a standard module within the ActiveX component. However, the RaiseEvent command can only be used in a class or usercontrol module and I can find no way for a standard module to communicate with a usercontrol module within an ActiveX component (other than polling).
I am sure there must be an easy way around this but it has so far escaped me. Any suggestions appreciated.
-
Nov 14th, 2001, 10:41 AM
#2
Fanatic Member
The .dll obviously raises an event. Why not declare it withevents in the class module?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|