Hello,

I have a typelibrary AAA.tlb file and its compiled into AAA.tlh and AAA.tli
Within the header file I see its defined coclass as

struct CoClassAAA;

put in a namespace NS_AAA.


I do the following in my OnInitDialog

CoInitialize(NULL);
CLSID
HRESULT hr=CLSIDFromProgID(OLESTR("AAA.CoClassAAA"),&clsid);

But during debug hr value contains 0x800401f3 which is an invalid class string and clsid is NULL
I have no idea how to find out the correct class string to pass in for the given library.

Thank you,