CreateInstance method of a com dll returns REGDB_E_CLASSNOTREG instead of

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZINEBA
    New Member
    • Jun 2014
    • 2

    CreateInstance method of a com dll returns REGDB_E_CLASSNOTREG instead of

    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_CLASSN OTREG" 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 CheminFichierDl l\NomDll.dll"
    But, running this command, Windows show the following message error:
    " c:\dkmetre\mdlA pps\v63\dllExce l\lectureFichie rExcel.dll" Was loaded but the entry point DllRegisterServ er 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
  • ZINEBA
    New Member
    • Jun 2014
    • 2

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

    Comment

    Working...