佚名通过本文主要向大家介绍了
com中某个涵数使用了charbuffer=newchar[size];语句出现错误等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: com中某个涵数使用了char buffer=new char[size];语句出现错误
描述:
描述:
出错信息如下:
D:\wcdmaprj\Instrument\GpibInstrument.cpp(87) : error C2065: 'DEBUG_NEW' : undeclared identifier
D:\wcdmaprj\Instrument\GpibInstrument.cpp(87) : error C2440: '=' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\wcdmaprj\Instrument\GpibInstrument.cpp(87) : error C2144: syntax error : missing ';' before type 'char'
请指点,谢谢!