Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I want to create a dll and register it in Windows, So i have two questions.


1) what is the command to register a C++ dll.
2) if i want to register are there any specific methods need to be present in the dll.


Basically i want to know what are the constariants for registering a dll ??


Thanks,



Moved from answer:

Hi All,

i have one C++ dll, and a c# dll,

i am not able to register them,


for c# dll, i am getting the error as

"Failure adding assembly to the cache: Attempt to install an assembly without a s
trong name"

and for C++ i am getting the error as,

"mydll.dll was loaded, but the DllRegisterServer entry point was not found, This file cannot be registered."
Posted
Updated 7-Jan-18 23:09pm
v2
Comments
Albert Holguin 21-Mar-12 0:49am    
Why would you want to "register" a c++ dll? Are you using com or something?

1 solution

Hi.
I think only COM dll can be registered to system.
I guess you may created a dll as general dynamic dll.
If you want to register your dll to system, you should create dll Project as ATL ComAppWizard.
 
Share this answer
 
Comments
Yashusid 21-Mar-12 2:02am    
Yes xnil,

this is just a dynamic dll
[no name] 21-Mar-12 2:25am    
Then you can reimplement that dll as COM format.

DLL should have ID for being registered to system.
but general dynamic dll hasn't that.

What do you want exactly?
Why do you want to register that dll to system?

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