473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CreateInstance method of a com dll returns REGDB_E_CLASSNOTREG instead of

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
1 1763
ZINEBA
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

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

Similar topics

2
by: shmeian | last post by:
I have the following code which works fine. However I want to pass the object I'm instantiating a string for its constructor. I can't get the syntax right. Can someone give me an example of...
1
by: Morten Nielsen | last post by:
Does anyone have any idea why I can't get a pixel-value of 255 returned in the code below? Any color-value from 0 up to 254 is returned correctly, but any color-component of 255 returns zero. ie....
3
by: Oskar Vaia | last post by:
Hi, in the .NET Framework Class Library there is the following text in the "Remarks"-section: "Use this method for objects that are immutable, but for which you want to provide changeable...
7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
1
by: BeckyB00 | last post by:
Slightly different situation from the question of the 11/18/05 but the same error. (I'm just learning about web services so this is based on a 'quick tutorial') I'm running a web service using...
0
by: Alan Silver | last post by:
Hello, I am using DataSets to insert data into a database. I have one that has an insert method whose SQL looks something like... insert into mytable (f1, f2) values (@f1, @f2); select...
1
by: Vlad | last post by:
Hello everybody, I have a problem with custom error page. I' using a redirection in a web.config file to a custom error page: <customErrors mode="RemoteOnly"...
4
by: Varangian | last post by:
Hello, I know that the kind of question below has been asked several times....however I need a clear answer in my specific situation. I have 2 methods. One returns an SqlDataReader and the...
3
by: sneha0608 | last post by:
what i am doing is i am reading an xml file...one node has the name of the class i need to instantiate...i am getting the name in the form of string... how to use create instance in dis case?? ...
0
by: vignesh28 | last post by:
hi .. i got the following error in activator.createinstance method 'Exception has been thrown by the target of an invocation.' this is the error. here is my code: public object...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.