MFC程序是在中文XP,VS2005环境编写,
在英文的VISTA下安装完之后第一次运行程序,再关闭就会由Program Compatibility Assistant提示:
If this program didn't install correctly, try reinstalling using settings that are compatible with this version of windows

解决方案 »

  1.   

    写一下注册表就可以了
    应该是reg_sz类型的,名字为你的应用程序所在的路径,c:\xxx.exe,值为1
    注册表路径我记不清楚了,以前做的,手头也没有vista
    lz可以去HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers以及附近找找看
      

  2.   

    实在不行,你就自己搜索一下 vista 程序兼容性助手自己查找一下相关资料,之所以弹出提示就是因为这个 程序兼容性助手,解决办法就是写注册表
      

  3.   

    http://support.microsoft.com/kb/920143