Thanks for your help.
The /exe tag at the beginning of the code worked and seems to have resolved the issue I mentioned earlier.
Would it be very complicated if we avoid using the /exe tag (which generates a file) and instead use the method mentioned below?
Using the following WinAPI function, it seems the initial value can always be retrieved.
The /exe tag at the beginning of the code worked and seems to have resolved the issue I mentioned earlier.
Would it be very complicated if we avoid using the /exe tag (which generates a file) and instead use the method mentioned below?
Quote:For example you can create a class that restores the initial variable value in destructor.
Using the following WinAPI function, it seems the initial value can always be retrieved.