Click here to Skip to main content
15,891,657 members
Home / Discussions / COM
   

COM

 
GeneralRe: COM DLL Pin
Steve S23-Feb-04 2:11
Steve S23-Feb-04 2:11 
QuestionHow can I create a COM hook like DrCOM Monitor? Pin
kenokabe22-Feb-04 21:05
kenokabe22-Feb-04 21:05 
Generaloutlook embedding Pin
emmatty21-Feb-04 23:13
emmatty21-Feb-04 23:13 
GeneralOutlook Addin Pin
chakkaradeepcc19-Feb-04 23:56
chakkaradeepcc19-Feb-04 23:56 
GeneralBSTR * parameter Pin
dzsigit19-Feb-04 0:26
dzsigit19-Feb-04 0:26 
GeneralRe: BSTR * parameter Pin
Steve S19-Feb-04 1:06
Steve S19-Feb-04 1:06 
GeneralRe: BSTR * parameter Pin
dzsigit19-Feb-04 3:52
dzsigit19-Feb-04 3:52 
GeneralRe: BSTR * parameter Pin
Vi219-Feb-04 18:58
Vi219-Feb-04 18:58 
AFAIK, you're using the illegal order of the arguments for Invoke - it should be the REVERSED order.

MSDN: "The arguments are passed in the array rgvarg[ ], with the number of arguments passed in cArgs. The arguments in the array should be placed from last to first, so rgvarg[0] has the last argument and rgvarg[cArgs -1] has the first argument. The method or property may change the values of elements within the array rgvarg, but only if it has set the VT_BYREF flag. Otherwise, consider the elements as read-only."

So your called function looks like
HRESULT somename(long x, [in,out]long* flags, [in,out]BSTR* docID)
instead of your function
long SelectDoc([in, out] BSTR* tstrDocID, [in, out] long* tintFlags, [in] long tintWindow);






With best wishes,
Vita
GeneralRe: BSTR * parameter Pin
Steve S19-Feb-04 22:50
Steve S19-Feb-04 22:50 
GeneralRe: BSTR * parameter Pin
dzsigit19-Feb-04 23:01
dzsigit19-Feb-04 23:01 
GeneralRe: BSTR * parameter Pin
Vi220-Feb-04 0:29
Vi220-Feb-04 0:29 
GeneralRe: BSTR * parameter Pin
dzsigit20-Feb-04 2:38
dzsigit20-Feb-04 2:38 
GeneralRe: BSTR * parameter Pin
Steve S22-Feb-04 22:19
Steve S22-Feb-04 22:19 
GeneralRe: BSTR * parameter Pin
dzsigit23-Feb-04 1:05
dzsigit23-Feb-04 1:05 
GeneralRe: BSTR * parameter Pin
Steve S23-Feb-04 2:08
Steve S23-Feb-04 2:08 
GeneralRe: BSTR * parameter Pin
dzsigit23-Feb-04 2:34
dzsigit23-Feb-04 2:34 
GeneralGet Parent window form ActiveX control Pin
TrungHuynh18-Feb-04 19:10
TrungHuynh18-Feb-04 19:10 
GeneralRegistering DLL and OCX Pin
alex120518-Feb-04 15:08
alex120518-Feb-04 15:08 
GeneralRe: Registering DLL and OCX Pin
Gasanov Tagir18-Feb-04 20:01
Gasanov Tagir18-Feb-04 20:01 
GeneralRe: Registering DLL and OCX Pin
alex120518-Feb-04 20:28
alex120518-Feb-04 20:28 
GeneralCreateFromFile() ,CreateFromClipboard(),CreateFromData() Pin
anshumanshinde18-Feb-04 1:06
anshumanshinde18-Feb-04 1:06 
GeneralNo such interface supported Pin
dzsigit17-Feb-04 23:46
dzsigit17-Feb-04 23:46 
GeneralRe: No such interface supported Pin
Stephane Rodriguez.18-Feb-04 0:10
Stephane Rodriguez.18-Feb-04 0:10 
GeneralRe: No such interface supported Pin
dzsigit18-Feb-04 1:54
dzsigit18-Feb-04 1:54 
GeneralRe: No such interface supported Pin
Stephane Rodriguez.18-Feb-04 3:06
Stephane Rodriguez.18-Feb-04 3:06 

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.