CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Posts
    737

    Question on OLE event interface

    I create an COM DLL with events. So I implement an event interface in the DLL. I create the type library so that vb can use it. At the very beginning, I have only 1 event, so the program work well. When I add one more event to it, whenever i trigger the second event from the COM DLL, it call the first event handler in vb, and worst, when i call the first event, it crash.... what can be the cause ?? thanks.




    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Question on OLE event interface

    after some testing, I found out this.... if i place the event handler in vb in correct sequence... like this

    private sub event1
    end sub

    private sub event2
    end sub

    it works....

    if i place it like this

    private sub event2
    end sub

    private sub event1
    end sub

    it failed... how can this be ??




    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

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

Featured