Hi,
I am new to COM, Just Starting to learn.
I have doubt in interface.
Ie I Created two interface in com.I am trying to acess that interface methods,
In client:
HRESULT hr =CoInitialize(0);
IAscendServicePtr iIAscService;
hr = ::CoCreateInstance(CLSID_AscendService, NULL, CLSCTX_INPROC_SERVER, IID_IAscendService, (void**)&iIAscService);
if(hr !=0)
return 0;
IAscendAttributePtr iAtrptr;
hr = ::CoCreateInstance(CLSID_AscendAttribute, NULL, CLSCTX_INPROC_SERVER, IID_IAscendAttribute, (void**)&iAtrptr);
if(hr !=0)
return 0;
// The second CoCreateInstance fails , ie it doesnt give that pointer (ie
iAtrptr = NULL)
Why its NuLL..
Can any one guide me.
Thanks