Perhaps you have a stdafx.h file with something like the following:
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows
NT 4 or later.
#define WINVER 0x0400 // Change this to the appropriate value to target
Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or
later.
#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to
target Windows 2000 or later.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or
later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to
target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400 // Change this to the appropriate value to target
IE 5.0 or later.
#endif
In that case, change the values of the #defines to 0x0400 (windows 95).
Regards,
Aaron Queenan.
[quoted text, click to view] "vc" <vcotirlea@hotmail.com> wrote in message
news:11e7a684.0307220607.27f94f9@posting.google.com...
> Hi all,
>
> I'm having an application (.exe) that I'm building on Win 2000. When
> running the .exe on a Windows 98/NT I get the following error:
> "Expects a newer version of Windows. Upgrade your Windows version"
>
> I'm building the application using a makefile that looks like:
> !include <win32.mak>
> .cpp.obj:
> $(cc) $(cdebug) $(cflags) $(cvarsmt) -DSTRICT -YX\
> /GX\ "_DEBUG" $<
>
> The application should work on Win98/NT even if it is build on
> Win2000, but I assume that I have to set a flag in the Makefile to
> make it working (actually the exe should run on all Windows OSs:
> 95/98/ME/NT/2k/XP), but I don't know which flag.
>
> Hope somebody can give me a solution,
> Thanks a lot,
> Viv