谁能解释上述编译告警的原因?并且如何去掉?工程中加RPC_NO_WINDOWS_H宏的方法除外
解决方案 »
- 关于界面与界面之间的链接
- 请问在C++中通过http方式获取网页的时候URI含有中文的问题
- linux下做C++开发的请进
- 怎么读取字符数组指定字符后面的数据
- 用ADO连接SYBASE怎么老是连不上?CAS是ODBC的数据源
- 如何在生成一个矩形边框时,使上一步生成的边框消失
- 请教如何通过另一个Dialog上的EDIT给主Dialog传递数据?(100分)
- 如何叫ListView选中下一项?
- MFC中取一个字符的ASC码的函数是什么?
- 为什么用GetSystemTime()得到的时间,wHour、wMinute、wSecond不对?
- time如何获取系统时间并存放到char *中?
- ★★★完成端口终极问题★★★
project->setting->c/c++下的warning level 可以调的最高的是4什么都会出来了,你不想让它们出来,调到NONE。http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/c4115.asp
'type' : named type definition in parenthesesThe given symbol was used to define a structure, union, or enumerated type inside a parenthetical expression. The scope of this definition may be unexpected.In a C function call, the definition has global scope. In a C++ function call, the definition has the same scope as the function being called.This warning can also be caused by declarators within parentheses (such as prototypes) that are not parenthetical expressions.This is a level-1 warning with C++ programs or under the /Za ANSI- compatibility command-line option. It is level 3 otherwise.The following example causes this warning:void func(struct S *); /* warning */This warning can be avoided by declaring or defining the structure outside of the parentheses before the line that caused this warning, as in:struct S;
void func(struct S *);or:struct S
{
int mem;
};
void func(struct S *);如果要去掉警告,可以加上下面的语句
#pragma warning(disable: 4115)