Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Why "Not a valid win32 application?" XP+ programs

- - - - -

  • Please log in to reply
3 replies to this topic

#1
smeezekitty

smeezekitty
  • Member
  • 5 posts
  • Joined 03-December 13
  • OS:Vista Home Premium x86
  • Country: Country Flag

I tried a Windows XP only program on Windows 2000 and got "Not a valid Win32 Application"

 

Now I fully expected to get DLL errors but I was surprised by that message. In fact I even re-downloaded

it because I thought it may have gotten corrupted but the result was the same.

 

Did something change in Windows EXEs that make them show that message?




How to remove advertisement from MSFN

#2
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 5,968 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

This info applies to running 9x/ME in 2k/XP, so it's probably not related.

As you can see, "Not a valid Win32 Application", may not actually mean literally that.

I doubt you error is caused by the same issues described in the link I jus gave you.

But, at the moment, it's the best I can offer. HTH



#3
Tommy

Tommy

    Brooke's Tommy honey <3

  • Member
  • PipPipPip
  • 477 posts
  • Joined 19-February 10
  • OS:98SE
  • Country: Country Flag

Blackwingcat could possibly answer this as that was the firstish thing he found a way around when he created his Kernel Extension (v2) for Windows 2000, and that was to stop the Win32 errors from happening.


Daily running Windows 2000 Pro SP4 and Windows 98 Second Edition

2dtzy51.png
stillwin9xmsfnbt0.png


#4
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,103 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

this happens when an application is compiled to be used at least under XP (_WIN32_WINNT is defined as 0x0501):

 

 

Setting WINVER or _WIN32_WINNT

You can define these symbols by using the #define statement in each source file, or by specifying the /D compiler option supported by Visual C++.

For example, to set WINVER in your source file, use the following statement:

#define WINVER 0x0502

To set _WIN32_WINNT in your source file, use the following statement:

#define _WIN32_WINNT 0x0502

To set _WIN32_WINNT using the /D compiler option, use the following command:

cl -c /D_WIN32_WINNT=0x0502 source.cpp

 

http://msdn.microsof...5(v=vs.85).aspx


Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users