English 中文(简体)
是否有办法使用2010年VC++而不包括 st。
原标题:Is there any way to use VC++ 2010 without including stdafx.h?

我已成功安装了VC2010年元,并开始用它编写简单方案。

我从<代码>#include<stdafx.h>中听到。 那么,没有收集和管理方案就有什么办法?

最佳回答

它是在编前的负责人。 不使用预产的头盔,也不包括。

问题回答

Goto Project Settings->Precompiled Headers. Select Not using precompiled headers.

你们也可以从每个档案中抽出有预谋的头盔。

在2012年VS Express C++中确定这一点如下:

  1. In Project Explorer right-click on .cpp file, select Properties.
  2. On the left pane select Configuration Properties/C++/ Precompiled Headers
  3. Now, on the right pane there is Precompiled Header value which you can change from Use /Yu to :
    • Not Using Precompiled Headers

Cheers enter image description here

当然,只是项目环境,C/C++ - 预设负责人,并选择“不使用预设负责人”。

BTW:在使用有预谋的头盔的大型项目中,建筑时间可能大大缩短。

当你创建项目时,就创建了一个空洞的项目。

现在,你们可以在项目环境中去掉。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签