Wanting2LearnMan
asked on
CoCreateInstance - Class not registered
I'm following the following tutorial:
http://www.codeguru.com/cpp/com-tech/activex/tutorials/article.php/c5567
I have built the dll and I am trying to run the client C++ program to access the dll.
First of all:
1. My dll is registered properly as I add the following in the post build event: regsvr32 ..\Debug\AddObj.dll
2. When I look in the registry I see the entry:
HKEY_LOCAL_MACHINE\SOFTWAR E\Classes\ CLSID\{92E 7A9C2-F4CB -11D4-825D -00104B364 6C0}\ProgI d\CodeGuru.FastAddition
so this indicates to me that it has registered properly.
Now when I step into the function pFastAddAlgorithm.CreateIn stance above I get to:
hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void**>(& pIUnknown) );
but hr = Class not regstered.
Why could this be??
Thanks
http://www.codeguru.com/cpp/com-tech/activex/tutorials/article.php/c5567
I have built the dll and I am trying to run the client C++ program to access the dll.
CodeGuruMathLib::IAddPtr pFastAddAlgorithm;
pFastAddAlgorithm.CreateInstance("CodeGuru.FastAddition");
First of all:
1. My dll is registered properly as I add the following in the post build event: regsvr32 ..\Debug\AddObj.dll
2. When I look in the registry I see the entry:
HKEY_LOCAL_MACHINE\SOFTWAR
so this indicates to me that it has registered properly.
Now when I step into the function pFastAddAlgorithm.CreateIn
hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void**>(&
but hr = Class not regstered.
Why could this be??
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.