如果Formload()中的EnumDisplayMonitors,则ActiveX .exe不会卸载 [英] ActiveX .exe won't unload if EnumDisplayMonitors in Formload()

查看:74
本文介绍了如果Formload()中的EnumDisplayMonitors,则ActiveX .exe不会卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个AciveX exe程序,它是另一个应用程序启动的,并由该应用程序卸载.最近在开发人员中,我注意到Activex exe处于加载状态. (我再也没有想到)...我现在做了什么?

因此,我跳过了最近添加的代码,以尝试将其卸载.
运气不好,我注释掉了我停留在Formload中的EnumDisplayMonitors的调用,以获取有关显示环境的一些信息.

使用EnumDisplayMonitors注释掉该程序将按原样卸载.
使用EnumDisplayMonitors时,它不会在任务mgr中杀死它.

EnumDisplayMonitors ByVal -0,ByVal -0,AddressOf MonitorEnumProc,ByVal 0&

WT?
谢谢

:Ron

Hi,

I have an AciveX exe program that is started be another app and is unloaded by that app. Recently in dev I noticed the Activex exe was staying loaded. (not again I thought)... what did I do now?

So I jump around recent code additions to try and get it to unload.
With no luck I commented out the call to EnumDisplayMonitors that I stuck in Formload to gain some info on the display environment.

With EnumDisplayMonitors commented out the program unloads as it should.
With EnumDisplayMonitors in play it won''t without killing it in task mgr.

EnumDisplayMonitors ByVal 0&, ByVal 0&, AddressOf MonitorEnumProc, ByVal 0&

WT?
Thanks

:Ron

推荐答案

这可能会将您引向答案:

MSDN-开始和结束组件 [
This might steer you toward an answer:

MSDN - Starting and Ending a Component [^]


这篇关于如果Formload()中的EnumDisplayMonitors,则ActiveX .exe不会卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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