Command Line Applications with Visual Studio 2008 and C++ Posted by omniplex in Errors
来源:互联网 发布:mac系统虚拟机安装win7 编辑:程序博客网 时间:2024/06/15 07:51
Command Line Applications with Visual Studio 2008 and C++
Posted by omniplex in Errors
From time to time the need arises for me to create a command line application for Windows using Visual Studio 2008. Lately I keep forgetting the same thing for my project and when I copy the application over to another Windows machine that doesn’t have VS2008 installed, I run into the following error “The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more details.”. Unfortuantly what I fail to remember is that by default VS2008 wants me to create managed code.
In your event viewer under “System” you will probably see something like “Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.”
You can avoid this one of two ways. Find the Visual Studio 2008 redistributable and send that along with your console application, or create a statically compiled application.
I prefer the statically compiled application for small things. In order to create a basic Command Line application, set your project settings as below:
In Configuration Properties -> General settings:
- Use of MFC=”Standard Windows” or “Static Library”
- Use of ATL=”Not using ATL” or “Static Link”
- Common Language Runtime=”No Common Language Runtime”
In C/C++ -> Code Generation:
- Runtime Library-> “Multi-threaded” or “Multi-threaded Debug” depending on the Build Configuration you are configuring “Release” or “Debug”
- Command Line Applications with Visual Studio 2008 and C++ Posted by omniplex in Errors
- visual studio command line
- visual studio 2008 command-line prompt
- Using UTF-8 as the internal representation for strings in C and C++ with Visual Studio
- Developing Applications with Visual Studio.NET
- Visual Studio build event command line 使用方法
- Visual Studio build event command line 使用方法
- 【IDE-Visual Studio】Command line error D8016
- 在Visual Studio 2010中指定命令行调试参数(Specify Command Line Arguments in Visual Studio 2010)
- WPF in Action with Visual Studio 2008
- Build Tiny C Compiler by VC in Visual Studio
- Line Counter - Writing a Visual Studio 2005 & 2008 Add-In
- 《Description of CWnd derived MFC objects and multithreaded applications in Visual C++》译文
- Highlight Current Line in Visual Studio 2010
- Use Command Window in Visual Studio
- Finding the Visual Studio Command Prompts in Visual Studio 2012
- Building Applications and Components with Visual Basic .NET
- Reading and modify OS X plist file by command line
- 如何在网页中嵌入Media player 播放流媒体
- js 是实现顶部弹出广告
- linux编程笔记
- QT学习笔记之十 Ticker
- Oracle分析函数学习笔记
- Command Line Applications with Visual Studio 2008 and C++ Posted by omniplex in Errors
- 如何设置当鼠标停留的时候改表格背景色变成另外一种色
- 网络编程技术(三)
- Java规则引擎工作原理及其应用(摘)
- SQL 语句快速参考
- (WPF学习记录)第十三章 ListBox选取
- 撰写一组SNORT规则防御SQL注入
- jboss 安全设置(二)
- 小文件存储策略