我用MATLAB做了个COM组件,在VC中调用,步骤都没错,在VC中定义全局变量时出错了
在CMyrandplottestVCDlg中定义公共变量Imyrandplottest *m_pTest出错了。
出错提示:Compiling...
myrandplottestvc.cpp
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2143: syntax error : missing ';' before '*'
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'Imyrandplottest' : missing storage-class or type specifiers
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'm_pTest' : missing storage-class or type specifiers
myrandplottestvcDlg.cpp
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2143: syntax error : missing ';' before '*'
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'Imyrandplottest' : missing storage-class or type specifiers
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'm_pTest' : missing storage-class or type specifiers
Error executing cl.exe.
高手赐教一下~!
在CMyrandplottestVCDlg中定义公共变量Imyrandplottest *m_pTest出错了。
出错提示:Compiling...
myrandplottestvc.cpp
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2143: syntax error : missing ';' before '*'
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'Imyrandplottest' : missing storage-class or type specifiers
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'm_pTest' : missing storage-class or type specifiers
myrandplottestvcDlg.cpp
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2143: syntax error : missing ';' before '*'
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'Imyrandplottest' : missing storage-class or type specifiers
e:\myrandplottestvc\myrandplottestvcdlg.h(39) : error C2501: 'm_pTest' : missing storage-class or type specifiers
Error executing cl.exe.
高手赐教一下~!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货