VS20xx IDE开发应用时_拷贝VS环境的库文件DLL到目标设备上运行的操作步骤
2016-10-07 03:41
513 查看
问题场景:
当用VSIDE开发完一个项目,在部署到目标环境中时,配置文件OK,但是报错需要调试
《1》Deploying Visual C++ library DLLs as shared assemblies
VC++的Redistributable Package,可以被用来部署“release”版本的VC++ 库文件。 往往在VCIDE中有三个版本(1)X86, (2)X64, (3)IA64, 分别可以单独用于不同版本的Windows操作系统。
这个包只能安装release版本的Visual C++库。
而debug版本的VisualC++库或者使用debug versions of Visual C++ Merge Modules模块,或者Debug versions can either be deployed as private assemblies两种方式处理。
debug Merge Modules能处理debug版本的应用。
it is possible to install a merge module by using Windows Installer (msiexec.exe)
步骤
(1)新建文件结构,保证开发环境与部署环境的文件结构一致。
For this example, create a \bin folder and copy myapplication.exe there. Then create a \bin\mylibrary folder and copy MyLibrary.dll there.
(2)把这个文件拷贝到目标设备中。
(3)Visual C++ Redistributable Package (vcredist_x86.exe),把这个文件拷贝到目标设备中:
这个文件在开发PC上的位置:%PROGDIR%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86\vcredist_x86.exe
如果是VC++ eXpress版本,则没有这个文件,可以在Microsoft Visual C++ 2005 Redistributable Package (x86).下载。
http://translate.google.cn/#en/zh-CN/Redistributable%20Package
(4)运行(vcredist_x86.exe)。
这样,安装VisualC++库文件为共享的方式文件。在目标设备中:On a target computer with support for manifest-based binding of applications to their dependencies (Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista), the libraries are installed in the WinSxS folder.
vcredist_*.exe installs only the release versions of Visual C++ DLLs.
(5)你的应用可以在目标设备上执行。
参考网址:
https://msdn.microsoft.com/en-us/library/ms235291(VS.80).aspx
当用VSIDE开发完一个项目,在部署到目标环境中时,配置文件OK,但是报错需要调试
《1》Deploying Visual C++ library DLLs as shared assemblies
VC++的Redistributable Package,可以被用来部署“release”版本的VC++ 库文件。 往往在VCIDE中有三个版本(1)X86, (2)X64, (3)IA64, 分别可以单独用于不同版本的Windows操作系统。
这个包只能安装release版本的Visual C++库。
而debug版本的VisualC++库或者使用debug versions of Visual C++ Merge Modules模块,或者Debug versions can either be deployed as private assemblies两种方式处理。
debug Merge Modules能处理debug版本的应用。
it is possible to install a merge module by using Windows Installer (msiexec.exe)
步骤
(1)新建文件结构,保证开发环境与部署环境的文件结构一致。
For this example, create a \bin folder and copy myapplication.exe there. Then create a \bin\mylibrary folder and copy MyLibrary.dll there.
(2)把这个文件拷贝到目标设备中。
(3)Visual C++ Redistributable Package (vcredist_x86.exe),把这个文件拷贝到目标设备中:
这个文件在开发PC上的位置:%PROGDIR%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86\vcredist_x86.exe
如果是VC++ eXpress版本,则没有这个文件,可以在Microsoft Visual C++ 2005 Redistributable Package (x86).下载。
http://translate.google.cn/#en/zh-CN/Redistributable%20Package
(4)运行(vcredist_x86.exe)。
这样,安装VisualC++库文件为共享的方式文件。在目标设备中:On a target computer with support for manifest-based binding of applications to their dependencies (Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista), the libraries are installed in the WinSxS folder.
vcredist_*.exe installs only the release versions of Visual C++ DLLs.
(5)你的应用可以在目标设备上执行。
参考网址:
https://msdn.microsoft.com/en-us/library/ms235291(VS.80).aspx
相关文章推荐
- 应用两个DLL文件在Keil环境下进行单片机开发调试仿真,强烈推荐给没有实验开发板的同学!!!!
- VS2005环境下的DLL应用
- Crystal Reports for vs2010 运行找不到文件 crdb_adoplus.dll'
- 点击VS2010解决方案中的某个项目的任意一个文件导致VS开发环境关闭
- 面向业务开发应用:如何避免步骤间操作冲突
- Sublime Text 2配置强大的IDE开发环境,运行java
- Android系统的应用开发与运行环境构建
- 基于UNIX的操作系统内核——目标文件格式、调试文件格式、运行时环境、安全
- PHPnow搭建PHP+MYSQL网站开发环境的操作步骤
- VS.NET IDE(集成开发环境) 开发环境界面介绍
- Java反射的高级应用,模拟开发环境IDE动态搜索类成员以及方法,。。。。。
- c#开发的运行在wm5.0环境中的sqlce数据库操作。
- Kiln:直接运行在iOS设备上的应用开发工具 (github.com)
- 【原创】ASP.NET Web 应用开发实战快速上手系列 1——配置环境及预备知识(框架、VS、C#)
- 智能设备应用开发之(一) Windows Mobile 开发环境搭建
- FireFox在VS开发环境中的应用
- Java反射的高级应用,模拟开发环境IDE动态搜索类成员以及方法,。。。。。
- 使用code::blocks搭建objective-c的IDE开发环境,支持外部引用.h和.m文件
- 使用VBIDE开发能在VB6.0IDE环境中自动拷贝工程中的Form图片的小工具
- 搭建Struts2开发环境– Struts2应用的配置文件