其他分享
首页 > 其他分享> > vc6转vs2010错误

vc6转vs2010错误

作者:互联网

1.找不到 iostream.h

把#include <iostream.h> 换成#include <iostream>

 

2.errorC2146:语法错误:缺少“;”(在标识符“PhysicalMediumType”的前面)

把netioapi.h里的#include <ntddndis.h>改为#include "ntddndis.h"

 

3.ws2def.h中出现大量 未定义标识符 “CHAR” “UCHAR”等

解决方法:  添加如下引用  顺序必须是这样

#include "Winsock2.h"
#include "windows.h"

标签:未定义,错误,ws2def,vs2010,语法错误,vc6,include,标识符
来源: https://www.cnblogs.com/code1992/p/12852661.html