• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Writing to a DLL

This may be a stupid question but what the heck.

Is it possible to write to a DLL that you have created?  Say for instance you have a ticker for the number of uses of the program.  Writing to the registry or to an ini file would have very little security and could be altered quite easily by the average user.
0
groone
Asked:
groone
1 Solution
 
mcriderCommented:
You could try this little trick...

After you create your DLL, open the DLL in BINARY APPEND MODE and write a single byte.  This byte will become part of the file, but is outside the execution boundry.  You can then open the DLL later with your program and read an write this byte...


Cheers!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now