中的DllRegisterServer [英] DllRegisterServer

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

问题描述

大家好,

我想知道函数DllRegisterServer何时会被调用?我正在使用

Visual Studio 2005来开发进程内本机(非托管)C ++ COM。我想知道什么时候会被调用?


1.在构建过程中或在DLL初始化过程中?

2.我发现此功能仅适用于调试模式,而不适用于释放模式。那是

是否正确?


在MSDN中,

http://msdn2.microsoft.com/en-us/library/ms682162.aspx


没有太多关于何时调用此方法的信息

以及它是否适用于调试模式代码和发布模式代码。

谢谢提前,

George

Hello everyone,
I am wondering when function DllRegisterServer will be invoked? I am using
Visual Studio 2005 to develop an in-process native (unmanaged) C++ COM. I am
wondering when it will be invoked?

1. During the build process or during the DLL initialization process?
2. I find this function only works for debug mode, not release mode. Is that
correct?

In MSDN,

http://msdn2.microsoft.com/en-us/library/ms682162.aspx

there are not too much information about when this method will be invoked
and whether it works for both debug mode code and release mode code.
thanks in advance,
George

推荐答案

>我想知道何时会调用函数DllRegisterServer?


每当有人调用它时!
>I am wondering when function DllRegisterServer will be invoked?

Whenever something calls it!

> 1。在构建过程中或DLL初始化过程中?
>1. During the build process or during the DLL initialization process?



你的构建过程是否有一个步骤来调用regsvr32来注册(即

调用该函数)?

Does you build process have a step to call regsvr32 to register (i.e.
call that function)?


> 2。我发现此功能仅适用于调试模式,而不适用于发布模式。那是
对吗?
>2. I find this function only works for debug mode, not release mode. Is that
correct?



它可能只会在你的

项目的调试配置中被调用。


Dave

It may only be getting called in the debug configuration of your
project.

Dave


谢谢Dave,

我没有在构建过程中明确调用regsvr32。对于构建过程,我只需使用Visual Studio 2005 IDE来构建。 :-)


我怀疑regsvr32调用DllRegisterServer,因为我在调试配置中将以下

选项设置为yes,


Linker --General - 注册输出为是


但我不确定。任何评论?

问候,

乔治


" David Lowndes"写道:
Thanks Dave,
I do not explicitly call regsvr32 in build process. For the build process, I
simply use Visual Studio 2005 IDE to build. :-)

I suspect regsvr32 invokes DllRegisterServer since I set the following
option to yes in debug configuration,

Linker --General --Register Output to yes

But I am not sure. Any comments?
regards,
George

"David Lowndes" wrote:

我想知道函数DllRegisterServer何时会被调用?
I am wondering when function DllRegisterServer will be invoked?



每当有人调用它时!


Whenever something calls it!


1.在构建过程中或在DLL初始化过程中?
1. During the build process or during the DLL initialization process?



您是否构建进程有一个步骤来调用regsvr32来注册(即

调用该函数)?


Does you build process have a step to call regsvr32 to register (i.e.
call that function)?


2.我发现此功能仅适用于调试模式,而不适用于发布模式。那是

是否正确?
2. I find this function only works for debug mode, not release mode. Is that
correct?



它可能只是在你的

项目的调试配置中被调用。


Dave


It may only be getting called in the debug configuration of your
project.

Dave


>我没有在构建过程中显式调用regsvr32。对于构建过程,I
>I do not explicitly call regsvr32 in build process. For the build process, I

>只需使用Visual Studio 2005 IDE进行构建。 :-)

我怀疑regsvr32调用DllRegisterServer,因为我在调试配置中将以下
选项设置为yes,

Linker --General --Register Output to yes

但我不确定。任何意见?
>simply use Visual Studio 2005 IDE to build. :-)

I suspect regsvr32 invokes DllRegisterServer since I set the following
option to yes in debug configuration,

Linker --General --Register Output to yes

But I am not sure. Any comments?



是的,这是该选项的作用:


注册输出

运行regsvr32.exe / s

Yes, that''s what that option does:

"Register Output
Run regsvr32.exe /s


这篇关于中的DllRegisterServer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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