如何动态加载/卸载资源? [英] How to Load/unload Resources dynamically?

查看:130
本文介绍了如何动态加载/卸载资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

我在系统托盘上有一个应用程序.最初,它在启动时不应加载资源.当我双击任务栏图标时,资源应该加载
,当我关闭应用程序资源时应该卸载.

为此,我仅为资源创建了一个dll,然后从应用程序中删除了所有资源.编译之前,使用:: LoadResources和:: UnloadResources方法动态加载和卸载

然后编译并运行它,现在只有系统任务栏图标,当我双击该图标时,应用程序未加载


如果您有任何想法,请帮助我

谢谢

hi

i have an application on system tray. Initially it should not load resources when it starts. When i double click on tray icon the resources should load
when i close only application resources should get unload.

for this i have create one dll only for resources, then deleted all resources from application before compiling, used the methods ::LoadResources and ::UnloadResources for load and unload dynamically

then compile and ran it, now only got system tray icon, when i double click on that, application is not loading


if you have any ideas, help me please

Thank you

推荐答案

您能提供代码来查看,如何使用:: LoadResources及其对应部分吗?

我希望,您一定已经使用:: LoadLibrary方法在拨打这些电话之前.请通过此示例程序链接,该链接使用:: LoadLibrary和:: LoadResource方法等...

如果仍然无法找到解决方案,请返回代码...


干杯

Hi, Can you provide the code to see, how are you using ::LoadResources and it's counter parts?

I hope, You must have used ::LoadLibrary method before making these calls. Please go through this link for the sample program, which uses ::LoadLibrary and ::LoadResource methods etc...

Revert to me with the code if you are still not be able to find the solution...


Cheers


这篇关于如何动态加载/卸载资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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