Getting CLSID for server COM in VC++
Posted on 2003-10-27
I am using a dll SocketX.dll in my applciation.
I am using as follows:
hresult=CLSIDFromProgID(OLESTR("SocketXObjLib.ISocketXObj"), &clsid); //retrieve CLSID of component
hresult=CoCreateInstance(clsid,NULL,CLSCTX_ALL,__uuidof(ISocketXObj),(LPVOID *) &t);
I am not gettin the CLSID of this .I am getting null values
I have some uuid defined in the SocketX.tlh file.
The namespace given is SocketXObjLib and I have some interfaces derived from IDispatch which is defined in the SocketX.tlh file.
is there any help with the statement __uuidof(ISocketXObj) ???
how can I use my dll and its methods in my application.
Can anyone suggest me some help