在VC++中用GetPrivateProfileInt从*.ini中获得一个int,但是后面的code调用时会报erro
Maxlen=GetPrivateProfileInt("MAXLEN","MAXLen",0,"D:\\INI.ini");调用:CStringaaName[Maxle...
Maxlen=GetPrivateProfileInt("MAXLEN","MAXLen",0,"D:\\INI.ini");
调用:
CString aaName[Maxlen];
Error:
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'aaName' : unknown size 展开
调用:
CString aaName[Maxlen];
Error:
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'aaName' : unknown size 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询