Click here to Skip to main content
15,887,683 members
Home / Discussions / COM
   

COM

 
GeneralRe: activex control problem Pin
AssemblySoft31-Jan-04 12:31
AssemblySoft31-Jan-04 12:31 
GeneralRe: activex control problem Pin
Jörgen Sigvardsson31-Jan-04 12:41
Jörgen Sigvardsson31-Jan-04 12:41 
QuestionPassing complex type through COM interface ? Pin
Alwin7530-Jan-04 12:50
Alwin7530-Jan-04 12:50 
AnswerRe: Passing complex type through COM interface ? Pin
Jörgen Sigvardsson30-Jan-04 13:00
Jörgen Sigvardsson30-Jan-04 13:00 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo30-Jan-04 12:28
kimsangwoo30-Jan-04 12:28 
GeneralProblem with MIDL and Flash IDL Pin
gialli29-Jan-04 22:16
gialli29-Jan-04 22:16 
GeneralPassing variants in Fire_xxx methods Pin
Aby Philip28-Jan-04 4:38
Aby Philip28-Jan-04 4:38 
GeneralRe: Passing variants in Fire_xxx methods Pin
Lim Bio Liong29-Jan-04 4:24
Lim Bio Liong29-Jan-04 4:24 
Hello Aby,

I have some clues as to what might have gine wrong but I need some more information from you first :

Is the events proxy code implemented somewhat like the following ? :

HRESULT Fire_SampleRecordPkt(VARIANT vBytes)
{
CComVariant varResult;
T* pT = static_cast<T*>(this);
int nConnectionIndex;
CComVariant* pvars = new CComVariant[1];
int nConnections = m_vec.GetSize();

for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
{
pT->Lock();
CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
pT->Unlock();
IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
if (pDispatch != NULL)
{
VariantClear(&varResult);
pvars[0] = &vBytes; // <-- important.
DISPPARAMS disp = { pvars, NULL, 1, 0 };
pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
}
}
delete[] pvars;
return varResult.scode;

}

Please note the line in which I added the comment "// <-- important.".

Please let me know because I suspect your problem may be a case of wrong code generated by the wizard.

Please revert,
Bio.

GeneralCOM and _bstr_t Pin
Tzoockee27-Jan-04 1:05
Tzoockee27-Jan-04 1:05 
GeneralRe: COM and _bstr_t Pin
Steve S27-Jan-04 1:53
Steve S27-Jan-04 1:53 
GeneralDCOM: running COM-server on another PC Pin
Bash27-Jan-04 0:15
Bash27-Jan-04 0:15 
GeneralRe: DCOM: running COM-server on another PC Pin
Anonymous27-Jan-04 3:23
Anonymous27-Jan-04 3:23 
GeneralProblem with compiling samples of Iniside OLE Pin
Omar Alvi26-Jan-04 22:13
Omar Alvi26-Jan-04 22:13 
GeneralCOM: precompiled header in *_i.c files Pin
Bash26-Jan-04 7:55
Bash26-Jan-04 7:55 
GeneralRe: COM: precompiled header in *_i.c files Pin
Steve S26-Jan-04 22:27
Steve S26-Jan-04 22:27 
GeneralExtracting the Contents of IStorage Pin
Steve Thresher26-Jan-04 3:58
Steve Thresher26-Jan-04 3:58 
GeneralRe: Extracting the Contents of IStorage Pin
Anonymous30-Jan-04 10:34
Anonymous30-Jan-04 10:34 
GeneralCOM question Pin
Tzoockee26-Jan-04 2:29
Tzoockee26-Jan-04 2:29 
GeneralRe: COM question Pin
Steve S26-Jan-04 2:49
Steve S26-Jan-04 2:49 
GeneralRe: COM question Pin
Tzoockee26-Jan-04 3:11
Tzoockee26-Jan-04 3:11 
GeneralRe: COM question Pin
Steve S26-Jan-04 5:26
Steve S26-Jan-04 5:26 
QuestionHow to USE C++ code in VB ?? Pin
ponka12825-Jan-04 9:27
ponka12825-Jan-04 9:27 
AnswerRe: How to USE C++ code in VB ?? Pin
Jörgen Sigvardsson25-Jan-04 10:09
Jörgen Sigvardsson25-Jan-04 10:09 
GeneralRe: How to USE C++ code in VB ?? Pin
Lim Bio Liong25-Jan-04 14:57
Lim Bio Liong25-Jan-04 14:57 
GeneralRe: How to USE C++ code in VB ?? Pin
Jörgen Sigvardsson25-Jan-04 21:18
Jörgen Sigvardsson25-Jan-04 21:18 

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.