Windows 10上的VC ++ MFC应用程序。 [英] VC++ MFC application on windows 10.

查看:521
本文介绍了Windows 10上的VC ++ MFC应用程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



目前,我的应用程序在Windows 7上运行(也使用visual studio 10在Windows 7上编译)。



我想在Windows 10系统上运行安装相同的软件包(安装程序)。



我的问题如下:



a)我是否需要使用visual studio 2010在Windows 10系统上编译二进制文件?

b)我是否需要将配置文件更改为每个Windows 10系统文件和注册表?如果有更改是Windows 7和Windows 10的注册表/文件布局。



任何帮助o r输入将不胜感激。



问候,

欢乐



我有什么试过:



试图谷歌这个,找不到任何有用的东西。

解决方案

a)不会。只要它们被正确定位,你在构建二进制文件时没有区别。



b)很可能不是。根据我的经验,完全按照您的描述进行操作,我不必更改任何注册表路径。我的程序虽然没有对注册表做任何特殊处理。他们在HKEY_CURRENT_USER中有一个部分并从中读取并写入。有些在HKEY_LOCAL_MACHINE中有一个部分但是从标准配置文件处理中获得了一些回转,所以我很少这样做。


最简单的方法是在发布版本中激活静态链接,这样你就可以了不需要MFC dll。否则,您需要一个安装可再发行的dll 的设置。对于专业的安装,您可能需要安装工具 Visual Studio中的安装程序可能不足以满足您的需求。



系统调用时,您需要在x32或x64中编译适用于此类操作系统的应用程序。



当你还没有提供创建标志时,你的应用需要注册表。



我的经验是没有办法测试在一个典型的目标系统上。


a)不,只需要安装vs2010运行时可再发行组件包。

b)不,它会正常工作。

Hi Guys,

Currently, I have my application running on windows 7 ( also compiled on windows 7 using visual studio 10).

I wanted to run the install the same package (installer) on windows 10 system.

I have few questions as below:

a) Do I need to compile the binaries on windows 10 system using visual studio 2010?
b) Do I need to change configuration file as per windows 10 system files and registry? If at all there is a change is registry /files layout of windows 7 and windows 10.

any help or input will be appreciated.

Regards,
Joy

What I have tried:

Was trying to google on this, could not found anything much useful.

解决方案

a) No. It makes no difference where you build the binaries as long as they are targeted correctly.

b) Most likely not. In my experience doing exactly what you describe, I have not had to change any registry paths. My programs have not done anything special with the registry though. They have a section in HKEY_CURRENT_USER and read from it and write to it. Some have a section in HKEY_LOCAL_MACHINE but that takes a few more gyrations from the standard profile handling stuff so I rarely do that.


The easiest way is to activate static linking in th release build so you dont need the MFC dlls. Else you need a setup which installs the redistributable dlls. For a professional instllation you may need a installation tool when the installer in Visual Studio may be not enough for your needs.

You need to compile your app in x32 or x64 for such OS when you system calls.

Registry is needed for your app, when you havent provided the create flag when not already available.

My experience is that there is no way around testing on a typical target system.


a) no, just vs2010 runtime redistributable package needs to be installed.
b) no, it will work just fine.


这篇关于Windows 10上的VC ++ MFC应用程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆