Dear All,
We have an application developed to work on windows 2000 and we want to run the application on windows XP now. Any changes are required to the application software
Please suggest.
Thanks
Dear All,
We have an application developed to work on windows 2000 and we want to run the application on windows XP now. Any changes are required to the application software
Please suggest.
Thanks
upgrading application from windows2000 to windows XP
Shepherd
wenxincao
YoungEngineer
Hello Martin and Alex,
Thank you very much for your answers.
I found in the code that the application checks for the operating system and if the OS is other than 2000/NT it aborts.
Please find below that part of the code. In this case do I need to change any thing which will make the software to run even on Windows XP I have observed that the application runs on some PCs with XP and does not run on some other PCs with XP.
The following is the code
/*
* Determine whether we're a Windows NT/2000 system and abort if we are not
*/
memset(&osi, 0,
sizeof(OSVERSIONINFO));osi.dwOSVersionInfoSize =
sizeof(OSVERSIONINFO); if (GetVersionEx(&osi) && osi.dwPlatformId != VER_PLATFORM_WIN32_NT) {MessageBox(NULL,
"This program is designed to work under Windows NT or 2000.\n"
"Aborting.",
"Controller", MB_ICONERROR | MB_OK); return 1;}
Thanks a lot
Chris Ghali
If you want you can add a manifest for the COMCTL32.DLL in version 6.0 (available under XP) and you will have the look and feal of XP themes.
See http://www.codeproject.com/w2k/xptheme.asp
Adding a manifest will not effect the software for other platforms like W2K!
CodeDigger
This is from the docs:
VER_PLATFORM_WIN32_NT is set for "Windows Server 2003, Windows XP, Windows 2000, or Windows NT."
So this check must also succeed for XP!