| | |
How can I register COM Compnent in VC++
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2006
Posts: 38
Reputation:
Solved Threads: 0
Hi,
I working on COM Components in VC++.NET 2005,
I am facing an error here.
I debug the code and found that "CoCreateInstance()" is returning a message
"Class is not registered"
an my program gets crash.
How can I resolve this problem? Please reply me soon.
--
Regards,
Asif
I working on COM Components in VC++.NET 2005,
C++ Syntax (Toggle Plain Text)
HRESULT hr = spCrypt.CoCreateInstance(__uuidof(Cryptographer::TMMPlayerHelper), 0); if( FAILED(hr) ) spCrypt = 0;
I am facing an error here.
I debug the code and found that "CoCreateInstance()" is returning a message
"Class is not registered"
an my program gets crash.
How can I resolve this problem? Please reply me soon.
--
Regards,
Asif
•
•
Join Date: Oct 2006
Posts: 38
Reputation:
Solved Threads: 0
Hi,
Cryptographer is a namespace. and it has different structs and classes. TMMPlayerHelper is declared as struct in this namespace.
I did not perform any registration step because i did not know how to register it?
--
Regards,
Asif
COM only works with ActiveX components or Windows Services programs, all of which must be registered before they can be used. Here is how to register them. If that registration fails then its not written as a COM component and therefore can not be used the way your attempting to use it.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Oct 2006
Posts: 38
Reputation:
Solved Threads: 0
•
•
•
•
COM only works with ActiveX components or Windows Services programs, all of which must be registered before they can be used. Here is how to register them. If that registration fails then its not written as a COM component and therefore can not be used the way your attempting to use it.
Thanks a lot.
Ancient Dragon. you have solved my problem. I have register the required dll and now its working perfectly.
--
Regards,
Asif
![]() |
Other Threads in the C++ Forum
- Previous Thread: socket programming file transfer
- Next Thread: Algorithm in C++
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






