Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - VC++ wth ActiveX and DetachDispatch
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VC++ wth ActiveX and DetachDispatch

 Post Reply Post Reply
Author
Message
jfstephe View Drop Down
Newbie
Newbie


Joined: 07 July 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jfstephe Quote  Post ReplyReply Direct Link To This Post Topic: VC++ wth ActiveX and DetachDispatch
    Posted: 02 October 2006 at 12:15pm
First off I think the implied (and explicit at times) scope of the activex forum is too narrow.
The 'general' ActiveX section mentions VB - activex can be used in anything - what about VC++ - I know you've got MFC but MFC and COM are different kettles of fish.
 
Anywho, the main reason for this post is to say that if you use events, in a VC++ project with activex, and the handlers take lpdispatch parameters make sure you DetachDispatch() the parameter item (taskpanelGroupItem for example) before you exit the function else you will at some time finish with an access violation.
 
Problem and solution in one :-).
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.111 seconds.