clj1020
2010-01-02, 13:47
已经在matlab下生成了com组件,testcom_1_0.dll, 但是vc中调用的时候总是提示:
--------------------Configuration: vcmatlab - Win32 Debug--------------------
Compiling...
vcmatlabDlg.cpp
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2146: syntax error : missing ';' before identifier 'MWFlags'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2501: 'MWFlags' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(57) : error C2146: syntax error : missing ';' before identifier 'GetMWFlags'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(57) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2143: syntax error : missing ';' before 'tag::id'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2433: 'IMWFlagsPtr' : 'inline' not permitted on data declarations
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
vcmatlab.exe - 1 error(s), 0 warning(s)
--------------------Configuration: vcmatlab - Win32 Debug--------------------
Compiling...
vcmatlabDlg.cpp
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2146: syntax error : missing ';' before identifier 'MWFlags'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(51) : error C2501: 'MWFlags' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(57) : error C2146: syntax error : missing ';' before identifier 'GetMWFlags'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tlh(57) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2143: syntax error : missing ';' before 'tag::id'
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2433: 'IMWFlagsPtr' : 'inline' not permitted on data declarations
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : error C2501: 'IMWFlagsPtr' : missing storage-class or type specifiers
e:\clj\matlabvc\example3\vcmatlab\debug\testcom_1_0.tli(14) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
vcmatlab.exe - 1 error(s), 0 warning(s)