Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to store data in dll files?
Posted

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.
 
Share this answer
 
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"?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900