Is it possible to create a dll to be used by an application to store changing data in? What I'm thinking of is using a dll as sort of an encrypted data file.
Is it possible to create a dll to be used by an application to store changing data in? What I'm thinking of is using a dll as sort of an encrypted data file.
I do not think it is possible to store data in a DLL like you would a file. If you are using windows you could try storing the data in the registry.
- Sean
If cities were built like software is built, the first woodpecker to come along would level civilization.
Black Frog Studios
Dll files (as exe files) are meant to be read only......
If you are talking of only the file with an extension .dll, there is no problem. But if your question was in perspective of "Dynamic Link Library", the answer is "No"! You could instead try on some for of IPC.
Could you elaborate on what IPC is?
IPC means Inter Process Communication (a means of sharing data between applications at runtime - though what relevance it has here is beyond me )
Most compilers (or more specifically linkers) will allow you to create your own section in a dll and nominate it as shared.......In that section you can hold data variables that are shared with any process that loads the dll...
So a shared section with an int is created in a dll....2 processes both load that dll at runtime......both can read and write to that int...
What about a wrapper?