I have a few questions about c++ dlls. So I'm pretty sure static variables are private to the dll and whenever they are loaded into the RAM, variables are initialized in some cases. However, I want to know if there is a way to store a variable in a dll.
For example: lets say I use this dll one day and I need to store that variable. Another day I need to see what that variable stored was. How do I do this?
EDIT: BTW, that variable is a cstring "char array"
The short version is: you shouldn't be saving values in DLLs, you should save and load it to/from an external file.
If you study the precise format of DLLs then you may be able to find a way to change the static variables but this is not what DLLs are for.