Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

I tried registering the .DLL file using regsvr32, but that would come up with an error also:

the DllRegister Server entry point was not found. 

This file can not be registered.


This dll was created in C.

Is there any other way to register this dll?


Regards,

Purnananda Behera
Posted

regsvr32 was used for traditional COM Dlls. If you created the COM object via .NET, you use the regasm utility.
 
Share this answer
 
To further the answer Abinhav gave you, if you need to use the functionality in the DLL, you will need to ensure that it is in a location that is searched at runtime. This means it will either have to be in your output directory or it will have to be in the environment PATH. Copying it to your output directory is the best bet.

To use the functionality in it, you will need to pinvoke the methods in it.
 
Share this answer
 
Comments
purnananda behera 7-Mar-12 7:13am    
Thanks Pete O'Hanlon
No there isn't. This error can occur if the entry points are not properly exported from the module or if the module is not a .DLL or .OCX file.

Read more about this here[^].
 
Share this answer
 
Comments
purnananda behera 7-Mar-12 7:11am    
Thanks Abhinav,
But the .Dll file is working fine for some other tools. I want to reuse that functionality in my C# application.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900