| | |
How can I register COM Compnent in VC++
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
Whose class is Cryptographer ? Is it registered ?
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
•
•
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.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
•
•
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++
Views: 540 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
algorithm api array arrays assignment beginner binary c++ c++borland c/c++ calculator char class classes code compile compiler constructor conversion convert count delete dll dynamic encryption error file files filestream forms fstream function functions game givemetehcodez graph graphics gui helpwithhomework homework http iamthwee input int lazy linker list loop loops map math matrix member memory multidimensional network newbie number object objects opengl output parameter pointer pointers problem program programming project qt random read reading recursion recursive reference server sort sorting spoonfeeding string strings struct student studio template templates text time tree variable vc++ vector video visual visualstudio win32 window windows winsock






