Class not registered
-
Hi all, I am trying to instantiate a COM object of class GPM (gpmgmt.h and gpmgmt.dll) using CoCretateInstance. It returns "0x80040154 Class not registerd" error. The code snippet is - ::CoCreateInstance( __uuidof(GPM), // CLSID_GPM NULL, CLSCTX_LOCAL_SERVER, __uuidof(IGPM), // IID_IGPM (void **)&m_IGPMObj); , where m_IGPMObj is a IGPM pointer. I am building my code with VS2005 in XP Professional SP2. The required header file and idl file are present in my machine, but not the dll (I dont know why). MSDN suggests that the dll is available in vista and 2008 server and redistributable for 2003 server and XP SP1. I have searched the dll in 2008 server and vista, it is not there also. I also tried to install GPMC in a XP SP3 machine, it simply fails saying that - LoadLibray fails. Any help is appriciated.
-
Hi all, I am trying to instantiate a COM object of class GPM (gpmgmt.h and gpmgmt.dll) using CoCretateInstance. It returns "0x80040154 Class not registerd" error. The code snippet is - ::CoCreateInstance( __uuidof(GPM), // CLSID_GPM NULL, CLSCTX_LOCAL_SERVER, __uuidof(IGPM), // IID_IGPM (void **)&m_IGPMObj); , where m_IGPMObj is a IGPM pointer. I am building my code with VS2005 in XP Professional SP2. The required header file and idl file are present in my machine, but not the dll (I dont know why). MSDN suggests that the dll is available in vista and 2008 server and redistributable for 2003 server and XP SP1. I have searched the dll in 2008 server and vista, it is not there also. I also tried to install GPMC in a XP SP3 machine, it simply fails saying that - LoadLibray fails. Any help is appriciated.
If the DLL's not present then no, the class won't be registered. Big surprise. So, your problem boils down to 'why can't you install GPMC'? You could use Dependency Walker[^] (specifically its 'Profile' feature) to see what LoadLibrary call is failing - open msiexec with Dependency walker, then in the Profile options, set the gpmc MSI file as a command line argument and run it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi all, I am trying to instantiate a COM object of class GPM (gpmgmt.h and gpmgmt.dll) using CoCretateInstance. It returns "0x80040154 Class not registerd" error. The code snippet is - ::CoCreateInstance( __uuidof(GPM), // CLSID_GPM NULL, CLSCTX_LOCAL_SERVER, __uuidof(IGPM), // IID_IGPM (void **)&m_IGPMObj); , where m_IGPMObj is a IGPM pointer. I am building my code with VS2005 in XP Professional SP2. The required header file and idl file are present in my machine, but not the dll (I dont know why). MSDN suggests that the dll is available in vista and 2008 server and redistributable for 2003 server and XP SP1. I have searched the dll in 2008 server and vista, it is not there also. I also tried to install GPMC in a XP SP3 machine, it simply fails saying that - LoadLibray fails. Any help is appriciated.
Hi, Try the following.... Go to the .Net command prompt & enter the command below: RegAsm api_name.dll /tlb:api_Name.tlb /codebase Note: It will register into GAC & export a tlb file. Thanks
Md. Marufuzzaman