VC++ wth ActiveX and DetachDispatch |
Post Reply |
Author | |
jfstephe
Newbie Joined: 07 July 2006 Status: Offline Points: 7 |
Post Options
Thanks(0)
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 :-).
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |