Hello!
I've got a little involved in Autocad .Net programming and I have a little issue: I want that a given dll to run on only one computer only - it's a kind of licensing.
The first thing that got in my mind is, based on some particular information of a given computer, the commands from a given dll will run if only some criteria are met - like example: the install date of of an the os, the MAC address of the network etc.
In my mind everything was simple: I create the dll file, having a global variable which is null. The first time the user uses the my dll file, my program sets this variable with the install date of the os. The second time the user uses the library, I check if the build date is the same as the date from my global variable, but I found out that the between uses, the global variable loses its value be and my idea is worthless.
So, my questions:
1. Can I maintain the state of a givin variable inside of a dll, without programming it?
2. Do you have any other ideas for my problem? ( How to restrain the use of a dll only on one computer? )
P.S. Sorry for my English.