Click here to Skip to main content
15,914,943 members
Home / Discussions / COM
   

COM

 
GeneralPlease help me! Pin
StefanM24-Apr-02 11:01
StefanM24-Apr-02 11:01 
QuestionHow to pass a string into COM Pin
24-Apr-02 5:34
suss24-Apr-02 5:34 
AnswerRe: How to pass a string into COM Pin
Paul M Watt24-Apr-02 5:42
mentorPaul M Watt24-Apr-02 5:42 
GeneralRe: How to pass a string into COM Pin
Sayan Mukherjee24-Apr-02 21:30
Sayan Mukherjee24-Apr-02 21:30 
GeneralRe: How to pass a string into COM Pin
25-Apr-02 1:29
suss25-Apr-02 1:29 
GeneralRe: How to pass a string into COM Pin
Matt Philmon1-May-02 2:11
Matt Philmon1-May-02 2:11 
AnswerRe: How to pass a string into COM Pin
soup29-Apr-02 2:21
soup29-Apr-02 2:21 
GeneralA strange issue about custom interface Pin
maya24-Apr-02 4:08
maya24-Apr-02 4:08 
DLL-based Component CA is developed with ATL Object wizard. Its features including:
1. single-threaded
2. custom interface
3. no aggregation support
CA has only one interface named IA which has a method GetData:
STDMETHOD(Receive)(/*[out]*/ long* pDataLength,
/*[out, size_is(*pDataLength)]*/ unsigned char** ppData);

A confusing fact is that:
When I use CA in a normal MFC EXE, it works well.
Then I use CA in an ATL-based EXE. In that EXE I have another Componet say CB.
CB creates a thread say WorkingThread().
In WorkingThread(), I call CreateInsantance() to create CA:
IA* pIA = NULL;
RESULT hr = CoCreateInstance(CLSID_A, NULL, CLSCTX_INPROC_SERVER,
IID_IA,
(void**)&pIA);
It failed with a HRESULT indicating "The interface IA is not supported by CLSID_A".
I have included A.h and two const definition of CLSID_A and IID_A in the ATL EXE's source,
the same as I did in the normal MFC EXE.

If CA is a dual interface, no such troubles. So I assume this is related to custom interface.
But how to solve this problem?
GeneralRe: A strange issue about custom interface Pin
Paul M Watt24-Apr-02 8:24
mentorPaul M Watt24-Apr-02 8:24 
GeneralTimer in DCOM server Pin
Hans Ruck23-Apr-02 23:11
Hans Ruck23-Apr-02 23:11 
GeneralRe: Timer in DCOM server Pin
Sayan Mukherjee24-Apr-02 21:38
Sayan Mukherjee24-Apr-02 21:38 
QuestionHow to uninstall a component(.dll) by C++ Pin
23-Apr-02 16:47
suss23-Apr-02 16:47 
AnswerRe: How to uninstall a component(.dll) by C++ Pin
bryce23-Apr-02 16:52
bryce23-Apr-02 16:52 
AnswerRe: How to uninstall a component(.dll) by C++ Pin
Vi223-Apr-02 21:01
Vi223-Apr-02 21:01 
AnswerRe: How to uninstall a component(.dll) by C++ Pin
Amit Dey27-Apr-02 16:49
Amit Dey27-Apr-02 16:49 
QuestionHow to uninstall a component(.dll) in a web page Pin
23-Apr-02 16:29
suss23-Apr-02 16:29 
AnswerRe: How to uninstall a component(.dll) in a web page Pin
Michael Dunn23-Apr-02 16:58
sitebuilderMichael Dunn23-Apr-02 16:58 
AnswerRe: How to uninstall a component(.dll) in a web page Pin
Amit Dey27-Apr-02 16:52
Amit Dey27-Apr-02 16:52 
QuestionHow to add a popup menu into Explorer Bar ActiveX Control? Pin
23-Apr-02 7:54
suss23-Apr-02 7:54 
AnswerRe: How to add a popup menu into Explorer Bar ActiveX Control? Pin
Amit Dey27-Apr-02 19:21
Amit Dey27-Apr-02 19:21 
GeneralATL-based subclassed windowed control flickers on resize Pin
Mr Matt Ellis, Esq23-Apr-02 5:39
Mr Matt Ellis, Esq23-Apr-02 5:39 
QuestionHow to use COM Objects in VC++ - Please Help Pin
23-Apr-02 1:33
suss23-Apr-02 1:33 
AnswerRe: How to use COM Objects in VC++ - Please Help Pin
Paul M Watt24-Apr-02 8:27
mentorPaul M Watt24-Apr-02 8:27 
QuestionHow to use COM Objects in VC++ Pin
23-Apr-02 1:32
suss23-Apr-02 1:32 
AnswerRe: How to use COM Objects in VC++ Pin
ThatsAlok19-Jul-09 0:18
ThatsAlok19-Jul-09 0: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.