在Dll中存储数据 [英] storing data in Dll

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

问题描述

如何在dll文件中存储数据?

解决方案

DLL可以包含资源"(旧的"rc"文件),资源可以包含原始数据(请参阅LoadResource LoadLibrary).

实际上,您必须创建一个没有源文件且仅包含资源脚本的DLL项目.

您的应用程序将加载DLL并从其中提取资源.


您可以像在标准应用程序中一样声明变量.但是,如果需要在与DLL链接的不同进程之间共享数据,请查看:?


How to store data in dll files?

DLLs can contain "resources" (the good old "rc" files) and resources can contain raw data (See LoadResource and LoadLibrary).

In fact you have to create a DLL project with no source and just a resource script in it.

Your applications will load the DLL and extract the resources from it.


You may declare variables as in you do in a standard application. However, if you need to share data among the different processes linked with the DLL, then have a look at: "How do I share data in my DLL with an application or with other DLLs"?


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

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