Click here to Skip to main content
15,898,371 members
Home / Discussions / COM
   

COM

 
GeneralRe: Event handing problem. Pin
Maverick4-Feb-04 15:54
Maverick4-Feb-04 15:54 
GeneralRe: Event handing problem. Pin
Lim Bio Liong4-Feb-04 17:17
Lim Bio Liong4-Feb-04 17:17 
GeneralRe: Event handing problem. Pin
Lim Bio Liong4-Feb-04 19:49
Lim Bio Liong4-Feb-04 19:49 
GeneralRe: Event handing problem. Pin
Lim Bio Liong4-Feb-04 20:22
Lim Bio Liong4-Feb-04 20:22 
GeneralRe: Event handing problem. Pin
Maverick4-Feb-04 20:57
Maverick4-Feb-04 20:57 
GeneralRe: Event handing problem. Pin
Lim Bio Liong4-Feb-04 23:39
Lim Bio Liong4-Feb-04 23:39 
GeneralRe: Event handing problem. Pin
Maverick5-Feb-04 0:31
Maverick5-Feb-04 0:31 
GeneralRe: Event handing problem. Pin
Lim Bio Liong5-Feb-04 0:48
Lim Bio Liong5-Feb-04 0:48 
Hello Maverick,

To use the STL vector class, #include <vector> and declare the namespace you will be using, e.g. :

#include <vector>
using namespace std;

>> Now with regards to the Fire_Event() code you made, i think ATL has automatically done it for me so.. i don't have to deal with it..

A strong word of caution here, Maverick. You must not use the same wizard-generated code for the event firing function. The wizard-generated code will use the original non-marshalled IDispatch pointers contained in your COM Object. --This is the cause of the crash.--

You must use the marshalled IDispatch interfaces. I think an example program will best illustrate the importance of marshalling. I'll also put in some code to illustrate clearing of vectors. Just give me a few days' time.

Best Regards,
Bio.





GeneralRe: Event handing problem. Pin
Maverick5-Feb-04 15:42
Maverick5-Feb-04 15:42 
GeneralRe: Event handing problem. Pin
Lim Bio Liong6-Feb-04 1:27
Lim Bio Liong6-Feb-04 1:27 
GeneralReg: EnumConnectionPoints and IEnumConnectionPoints Pin
Adi Narayana20-Jan-04 4:07
Adi Narayana20-Jan-04 4:07 
GeneralRe: Reg: EnumConnectionPoints and IEnumConnectionPoints Pin
Jörgen Sigvardsson25-Jan-04 13:45
Jörgen Sigvardsson25-Jan-04 13:45 
GeneralStructured storage and compound files Pin
Omar Alvi20-Jan-04 2:04
Omar Alvi20-Jan-04 2:04 
GeneralRe: Structured storage and compound files Pin
Jörgen Sigvardsson25-Jan-04 13:49
Jörgen Sigvardsson25-Jan-04 13:49 
GeneralIProcessInitializer / COM+ Pin
vlvl19-Jan-04 4:58
vlvl19-Jan-04 4:58 
GeneralI need a good book... Pin
profoundwhispers19-Jan-04 3:17
profoundwhispers19-Jan-04 3:17 
GeneralRe: I need a good book... Pin
Jörgen Sigvardsson25-Jan-04 13:54
Jörgen Sigvardsson25-Jan-04 13:54 
GeneralRe: I need a good book... Pin
Prakash Nadar25-Jan-04 22:17
Prakash Nadar25-Jan-04 22:17 
GeneralRe: I need a good book... Pin
Jörgen Sigvardsson25-Jan-04 22:21
Jörgen Sigvardsson25-Jan-04 22:21 
GeneralScriptable ActiveX and javascript Pin
gialli19-Jan-04 2:04
gialli19-Jan-04 2:04 
GeneralRe: Scriptable ActiveX and javascript Pin
Anonymous30-Jan-04 10:54
Anonymous30-Jan-04 10:54 
GeneralInterdev and COM Pin
Davy Mitchell19-Jan-04 0:14
Davy Mitchell19-Jan-04 0:14 
GeneralWord Interop Pin
Guinness4Strength18-Jan-04 19:09
Guinness4Strength18-Jan-04 19:09 
GeneralSave a CArray into the persistence of a ActiveX Pin
ZeroCoolLP17-Jan-04 23:39
ZeroCoolLP17-Jan-04 23:39 
GeneralRe: Save a CArray into the persistence of a ActiveX Pin
Mike Dimmick19-Jan-04 0:25
Mike Dimmick19-Jan-04 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.