c ++:procedure注册一个dll [英] c++ : procedure register a dll

查看:80
本文介绍了c ++:procedure注册一个dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想创建一个dll并在Windows中注册,所以我有两个问题。





1)注册C ++ dll的命令是什么。

2)如果我想注册,是否需要存在任何特定的方法在dll。





基本上我想知道注册dll的常数是什么?





谢谢,







从回答中移出:



大家好,



i有一个C ++ dll和ac#dll,



i无法注册,





for c#dll ,我收到错误



无法将程序集添加到缓存中:尝试安装程序集而不是

trong name



和C ++我收到的错误是,



mydll.dll已加载,但是DllRegisterServer entr找不到y点,这个文件无法注册。

解决方案

嗨。

我认为只有COM dll可以注册到系统。

我猜你可能会创建一个dll作为一般动态dll。

如果你想将你的dll注册到系统,你应该创建dll Project作为ATL ComAppWizard。

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."

解决方案

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.


这篇关于c ++:procedure注册一个dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆