The attached works on W98, W2K, Server 2000/2003 and Windows 7 in debug mode.
After compiling, it works on all O/S`s EXCEPT Windows 7.
This is just a code snippet; it is normally part of a security check routine to identify the Workstation and the User that is trying to execute the program. I didn't know there was a problem until I recently got a new laptop (W7), ported all development work to laptop and found out that no .exe files would run. It doesn't matter if you compile the program on the W7 machine or any other; the .exe file just bombs.
The registry fetch works, the Computer Name (Sec_Svr) is correct and the error occurs when trying to test (or msgbox or anything else) on what should be the User Name (Sec_User). Work around is to use ErrorLabel.
Regards,
Ed Sharp
After compiling, it works on all O/S`s EXCEPT Windows 7.
This is just a code snippet; it is normally part of a security check routine to identify the Workstation and the User that is trying to execute the program. I didn't know there was a problem until I recently got a new laptop (W7), ported all development work to laptop and found out that no .exe files would run. It doesn't matter if you compile the program on the W7 machine or any other; the .exe file just bombs.
The registry fetch works, the Computer Name (Sec_Svr) is correct and the error occurs when trying to test (or msgbox or anything else) on what should be the User Name (Sec_User). Work around is to use ErrorLabel.
Regards,
Ed Sharp