Click here to Skip to main content
12,065,756 members (44,308 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET DLL
I am trying to register mydll.dll I dont know in what language it has been written

I am doing
regsvr32  "C:\Windows\System32\mydll.dll"

in run

I get the following error:

The module "C:\Windows\System32\mydll.dll" was loaded but the entry-point DllRegisterServer was not found.
Posted 2-Sep-12 1:01am
Edited 2-Sep-12 1:04am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Regsvr32[^] is a tool for registering native dlls with COM[^]

>> I made ​​this dll file in c# 2010 from some classes.
If this is the case, all you need is to add a reference to your dll[^] from your project.

Best regards
Espen Harlinn
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Looks like you haven't properly exported the entry point for the dll. See: http://support.microsoft.com/kb/249873[^]

Since you don't have the source code for the dll, try contacting the author of the library.

Addition:
To export functions from C# dll, have a look at the following articles:
- How to Automate Exporting .NET Function to Unmanaged Programs[^]
- Simple Method of DLL Export without C++/CLI[^]
  Permalink  
v2
Comments
ehsaneng 2-Sep-12 6:14am
   
I made ​​this dll file in c# 2010 from some classes.
i have the code source.
Mika Wendelius 2-Sep-12 6:48am
   
Ok, in your question you said that you didn't know what language was used.

So if I understand correctly, you would like to export some functionality from your C# dll to an unmanaged caller. See the updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160207.1 | Last Updated 2 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100