| | |
How can I register COM Compnent in VC++
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
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.
I told Santa what I wanted for Christmas and he washed my mouth out with soap.
•
•
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: 506 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






