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