MFC VC++ App Crashes On Vista
I have developed an application using MFC VC++ and I am want to target all
versions of Windows from XP going forward (Windows XP, Vista, 7 and 8). I
have developed the app on a Windows 7 64 bit machine in VS2012 and it
works perfectly but when I attempt to run it on Vista I get the following
message:
"A problem has caused the program to stop working correctly. Windows will
close the program and notify you if a solution is available"
Here is a screenshot of one of the property pages of the project:
In my targetver.h file I have the following:
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform,
include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before
including SDKDDKVer.h.
//#include <SDKDDKVer.h>
#include <winsdkver.h>
#define WINVER 0x0501
#define _WIN32_WINNT 0x0501
Can anyone suggest what I might be doing wrong? What other information
would be helpful?
No comments:
Post a Comment