Results 1 to 2 of 2

Thread: ActiveX wrapper with Callbacks

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    Portsmouth, England
    Posts
    1

    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.

  2. #2
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769
    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
  •  



Click Here to Expand Forum to Full Width