By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

CreateInstance method of a com dll returns REGDB_E_CLASSNOTREG instead of

P: 2
Hello
I created a dll in C# with visual studio 2010 ( I use the version 2.0 of .Net framework).
I am supposed to call this dll on 2 separates C++ project. So, In order to communicate managed code to unmanaged code, I use COM object.
The first C++ project exists in the development machine (OS Windows 7) and is created with the visual studio 2005. In this case, I import the dll, and it works correctly.
The second C++ project exists in a virtual machine (OS Windows xp) and is created with visual studio 2003. In this case, I import the dll, no compilation errors, but when running, I call the “CreateInstance” method in order to create an HRESULT object, this method do not returns a “S_OK” value, but it returns a "REGDB_E_CLASSNOTREG" value.
Looking on the internet, a lot of people recommend the registration of the dll file by typing at visual studio command prompt the following command:
"regsvr32 CheminFichierDll\NomDll.dll"
But, running this command, Windows show the following message error:
" c:\dkmetre\mdlApps\v63\dllExcel\lectureFichierExce l.dll" Was loaded but the entry point DllRegisterServer was not found. This file can not be saved."
I do not know the problem is on what level, need your help.
Thank you in advance
Jun 26 '14 #1
Share this Question
Share on Google+
1 Reply


P: 2
It works now
people who face the same problem here is the solution:

http://social.msdn.microsoft.com/For...forum=netfxbcl
Jun 26 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.