VB6 ActiveX DLL已注册在构建中,不希望这样做. [英] VB6 ActiveX DLL Registered On build, Don't want it to.

查看:88
本文介绍了VB6 ActiveX DLL已注册在构建中,不希望这样做.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有部分用VB6编写的产品.它是由
构建的 是ActiveX dll的许多dll.我正在努力减少我们对
的依赖 注册的COM对象.由于所有组件都在过程中使用
使用
无需在运行时注册项目 reg free com我无需注册即可部署所有内容.

问题是没有它,我找不到构建VB6代码的方法
在构建过程中自动注册activeX dll.任何人

We have a product that is partly written in VB6. It is built up of
many dlls that are activeX dlls. I''m trying to reduce our dependence on
registered COM objects. Since all the components are used inprocess
there is no need for items to be registered and during run-time, using
reg free com I can deploy everything without registering it.

Problem is I can''t find a way to build the VB6 Code without it
automatically registering the activeX dlls during the build. Anyone
know if it is possible to build but not regisiter a VB6 ActiveX dll?

推荐答案

没有办法防止这种情况的发生. VB6将在每次构建控件时对其进行注册.您无法阻止它这样做.
There is no way to prevent this. VB6 will register the controls on every time they are built. You cannot stop it from doing so.


编写一个批处理文件来进行构建,包括随后注销DLL,我们使用:

Write a batch file to do your building, including unregistering the DLL afterwards, we use:

subst Z: .
vb6 /make %ProjectFile% /out "%LogSuccess%\%PROJECTNAME%_Log.txt" /outdir Z:\bin
IF ERRORLEVEL 1 MOVE "%LogSuccess%\%PROJECTNAME%_Log.txt" "%LogFail%"
regsvr32 /u Z:\bin\Constants.dll
subst Z: /D


简短答案:ActiveX很烂!也是VB6.

我敢打赌你对此无能为力.如果您最终废弃了VB6,则至少在很多情况下,您可能有机会摆脱ActiveX.

—SA
Short answer: ActiveX sucks! VB6 too.

I bet you cannot do anything about it. If you finally trash VB6, you may have a chance to get away from ActiveX, at least in many cases.

—SA


这篇关于VB6 ActiveX DLL已注册在构建中,不希望这样做.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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