Click here to Skip to main content
15,912,072 members
Home / Discussions / COM
   

COM

 
GeneralRe: Writing a VERY simple COM Client Pin
Michael Dunn8-Jan-02 9:59
sitebuilderMichael Dunn8-Jan-02 9:59 
GeneralRe: Writing a VERY simple COM Client Pin
Brian C Hart8-Jan-02 10:10
professionalBrian C Hart8-Jan-02 10:10 
GeneralActiveX and IE Events Pin
7-Jan-02 11:16
suss7-Jan-02 11:16 
GeneralRe: ActiveX and IE Events Pin
Todd Smith7-Jan-02 11:18
Todd Smith7-Jan-02 11:18 
GeneralRe: ActiveX and IE Events Pin
7-Jan-02 11:21
suss7-Jan-02 11:21 
General(KERNEL32.DLL): 0x000006F4: (no name) Pin
4-Jan-02 4:59
suss4-Jan-02 4:59 
GeneralRe: (KERNEL32.DLL): 0x000006F4: (no name) Pin
7-Jan-02 0:26
suss7-Jan-02 0:26 
GeneralCOM_INTERFACE_ENTRY brings nothing Pin
2-Jan-02 23:07
suss2-Jan-02 23:07 
Hello All!

I'm implementing a COM object using ATL under BCB5.
The target is a DLL. It is compiled and built OK. Also I have
a client application that calls DllGetClassObject directly
from this DLL (after dynamic linking) and tries to get
supported CLSID & IID pair.

At that moment I've got the error, that interface is not
supported. After debugging deep inside ATL implemetation
code I've discovered that _ATL_INTMAP_ENTRY map of
my object contains only IUnknown. Please could someone
point out the problem.

Here is some excerpt from implemenation header:
=========================================

class ATL_NO_VTABLE TFooIndexerImpl :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<TFooIndexerImpl, &CLSID_FooIndexer>,
public IFooIndexer
{
public:
TFooIndexerImpl()
{
}

// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID("Indexer.FooIndexer");
DECLARE_DESCRIPTION("");

...

BEGIN_COM_MAP(TFooIndexerImpl)
COM_INTERFACE_ENTRY(IFooIndexer)
END_COM_MAP()

// IFooIndexer
public:
...

};
===========================================

And in another module an object map is defined:
===========================================
BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_FooIndexer, TFooIndexerImpl)
END_OBJECT_MAP()
===========================================

So, why the call DllGetClassObject(CLSID_FooIndexer,IID_IFooIndexer,...)
fails?

Thanks in advance.

GeneralRe: COM_INTERFACE_ENTRY brings nothing Pin
Not Active3-Jan-02 6:39
mentorNot Active3-Jan-02 6:39 
GeneralRe: COM_INTERFACE_ENTRY brings nothing Pin
7-Jan-02 21:09
suss7-Jan-02 21:09 
GeneralDCOM, Events and Performance Pin
Firoz31-Dec-01 18:55
Firoz31-Dec-01 18:55 
GeneralRe: DCOM, Events and Performance Pin
Anand Amirineni15-Mar-02 9:35
Anand Amirineni15-Mar-02 9:35 
GeneralATL ASP Global.asa Pin
jubinishoo27-Dec-01 18:41
jubinishoo27-Dec-01 18:41 
QuestionApartment? Pin
ragamuffin26-Dec-01 19:29
ragamuffin26-Dec-01 19:29 
AnswerRe: Apartment? Pin
geoff3-Jan-02 18:13
geoff3-Jan-02 18:13 
GeneralRe: Apartment? Pin
Not Active4-Jan-02 20:15
mentorNot Active4-Jan-02 20:15 
GeneralRe: Apartment? Pin
geoff5-Jan-02 2:38
geoff5-Jan-02 2:38 
GeneralHelp! How to understanding marshaling! Pin
Kang wenzhen24-Dec-01 22:16
Kang wenzhen24-Dec-01 22:16 
GeneralRe: Help! How to understanding marshaling! Pin
Tim Smith25-Dec-01 2:36
Tim Smith25-Dec-01 2:36 
GeneralProblems with class header of COM object Pin
IGx8922-Dec-01 8:52
IGx8922-Dec-01 8:52 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 8:56
IGx8922-Dec-01 8:56 
GeneralRe: Problems with class header of COM object Pin
Michael Dunn22-Dec-01 14:51
sitebuilderMichael Dunn22-Dec-01 14:51 
GeneralRe: Problems with class header of COM object Pin
IGx8922-Dec-01 16:01
IGx8922-Dec-01 16:01 
Generalusing IDirectDraw7 in a type library Pin
20-Dec-01 15:36
suss20-Dec-01 15:36 
GeneralATL and MFC OnIdle() Pin
Jamie Hale18-Dec-01 6:01
Jamie Hale18-Dec-01 6:01 

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.