Click here to Skip to main content
11,647,018 members (78,823 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 6-Mar-12 18:33pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^].
  Permalink  
Comments
purnananda behera at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
purnananda behera at 7-Mar-12 7:13am
   
Thanks Pete O'Hanlon
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

regsvr32 was used for traditional COM Dlls. If you created the COM object via .NET, you use the regasm utility.
  Permalink  

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

  Print Answers RSS
0 jyo.net 510
1 Sergey Alexandrovich Kryukov 433
2 OriginalGriff 388
3 CPallini 334
4 F-ES Sitecore 309
0 OriginalGriff 1,253
1 jyo.net 994
2 DamithSL 896
3 Sergey Alexandrovich Kryukov 833
4 CPallini 720


Advertise | Privacy | Mobile
Web04 | 2.8.150804.2 | Last Updated 23 Jul 2012
Copyright © CodeProject, 1999-2015
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