COM DLL ProgID is not created
-
Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....
-
Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....
Maybe you need to check HRESULT to see what is wrong. However, have you called CoInitialize or CoInitializeEx first? And finally, you can write: HRESULT hres = sobj.CreateInstance(OLESTR("ScriptObj.ScriptObj"));
-
Hi All, i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:- HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid); and HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}"); but failing in both the cases.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....