ADO编程中遇到的问题
使用ADO编程:
stdafx.h文件中:
#include <icrsint.h>
#import "C:\Program Files\Common Files\System\ADO\msado15.dll"
no_namespace rename("EOF", "adoEOF")
在APP文件中:
AfxOleInit();
在一个A.h中定义
_CommandPtr m_command;
编译的时候:error C2146: syntax error : missing ';' before identifier 'm_command'
error C2501: '_CommandPtr' : missing storage-class or type specifiers
error C2501: 'm_command' : missing storage-class or type specifiers
请问,到底是什么问题?