Click here to Skip to main content
15,919,749 members
Home / Discussions / COM
   

COM

 
GeneralRe: What are the rules for changing a published COM interface? Pin
Sir Garence22-Feb-05 4:25
sussSir Garence22-Feb-05 4:25 
GeneralRe: What are the rules for changing a published COM interface? Pin
Christian Graus22-Feb-05 8:41
protectorChristian Graus22-Feb-05 8:41 
GeneralCOM with C# multi client model Pin
sokettepower20-Feb-05 23:50
sokettepower20-Feb-05 23:50 
GeneralRe: COM with C# multi client model Pin
vishalmore21-Feb-05 18:08
vishalmore21-Feb-05 18:08 
QuestionCan we set a global hook in a COM object? Pin
nadzzz20-Feb-05 7:24
nadzzz20-Feb-05 7:24 
AnswerRe: Can we set a global hook in a COM object? Pin
Jörgen Sigvardsson20-Feb-05 9:02
Jörgen Sigvardsson20-Feb-05 9:02 
AnswerRe: Can we set a global hook in a COM object? Pin
vishalmore20-Feb-05 18:23
vishalmore20-Feb-05 18:23 
GeneralError firing callback event Pin
Mayur Mahajan19-Feb-05 19:03
Mayur Mahajan19-Feb-05 19:03 
My COM server should fire the event of a VB client. The code (generated by the Wizard) is as follows

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

The problem here is that m_vec.GetSize returns 0 and hence the for loop to fire the event is not called and return value is 0xCCCCCCCC

However firing the event works intially and after a few function calls, it stops working!

I am totally confused what could the problem be. Is it because of some memory leak or anything else. Please comment on possible problems.

Also I would like someone to tell me whose responsibility it is to free the BSTR or VARIANT arguments in interface method, server or clients? for both by value and by reference type.
Thank You

Mayur Mahajan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GeneralIPropertyBag Pin
nsrsetty18-Feb-05 18:33
nsrsetty18-Feb-05 18:33 
GeneralCOM Service Pin
Vinicius Pontes18-Feb-05 0:04
Vinicius Pontes18-Feb-05 0:04 
GeneralRe: COM Service Pin
ThatsAlok19-Feb-05 6:04
ThatsAlok19-Feb-05 6:04 
GeneralRe: COM Service Pin
Vinicius Pontes20-Feb-05 23:38
Vinicius Pontes20-Feb-05 23:38 
GeneralRe: COM Service Pin
ThatsAlok21-Feb-05 0:38
ThatsAlok21-Feb-05 0:38 
GeneralCreate a new Thread Pin
BEamer17-Feb-05 2:25
BEamer17-Feb-05 2:25 
GeneralExcel COM Pin
MJWhiteman217-Feb-05 0:44
MJWhiteman217-Feb-05 0:44 
GeneralRe: Excel COM Pin
MJWhiteman217-Feb-05 3:27
MJWhiteman217-Feb-05 3:27 
GeneralInterprocess communication Pin
ravishanker16-Feb-05 17:17
ravishanker16-Feb-05 17:17 
GeneralMSComm32 dependances Pin
Trankil16-Feb-05 6:26
Trankil16-Feb-05 6:26 
GeneralRe: MSComm32 dependances Pin
rwestgraham16-Feb-05 16:43
rwestgraham16-Feb-05 16:43 
QuestionWho have the SkinCrafter dll ? Pin
rushing15-Feb-05 22:16
rushing15-Feb-05 22:16 
Generalrestore IXMLDOMElement from pointer Pin
Konrad Windszus15-Feb-05 1:18
Konrad Windszus15-Feb-05 1:18 
GeneralMS word Pin
merlinos14-Feb-05 14:43
merlinos14-Feb-05 14:43 
GeneralIDTExtensbility2 add-in deployment Pin
m6reid14-Feb-05 11:10
sussm6reid14-Feb-05 11:10 
GeneralRe: IDTExtensbility2 add-in deployment Pin
vishalmore21-Feb-05 18:52
vishalmore21-Feb-05 18:52 
GeneralMS Office docs Pin
Chna12-Feb-05 20:57
Chna12-Feb-05 20:57 

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.