atl - HRESULT:0x80040154 for registered COM object -


i have probles call com object.

szprogid = imctrl.section hresult hr = clsidfromprogid(szprogid, &clsid); 

after execution, hr = s_ok, clsid = "clsid_section class".
when try create object, cocreateinstance returned error : "class not registered". although "imctrl.section" exist in registry.

hr = ::cocreateinstance(clsid, punkouter, dwclscontext, __uuidof(t), (void**)&p); 

same error other clases dll.

the problem not related 32-bit vs. 64-bit.
using utility software "depends.exe" found dll dependencies third-party dll, did not allow access object.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -