12-25-2009 01:49 PM
Dear all,
I encounter the problem about "using a matlab dll in Labview".
I refer to the previous discussion and post,
like as, http://forums.ni.com/ni/board/message?board.id=170&message.id=29793&view=by_da
It is very useful to me.
Special thanks to "dsavir",
He write the documention for this problem,and step by step to teach.
http://forums.ni.com/ni/attachments/ni/170/186604/1/dllexample.zip
I follow the above documentions to process.
Nevertheless, i still face the difficulties in compiling in the VC6.0,
I am not familiar with the Visual C++,
please, give me some suggestion to address this problem
Version :
Matlab 7.4
MS VC++6.0(sp6)
Error.info :
Compiling...
dllexample.cpp
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1528) : error C2065: 'REFCLSID' : undeclared identifier
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1528) : error C2146: syntax error : missing ')' before identifier 'clsid'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1528) : error C2182: 'mclCLSIDtochar' : illegal use of type 'void'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1528) : error C2059: syntax error : ')'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1532) : error C2065: 'REFGUID' : undeclared identifier
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1532) : error C2146: syntax error : missing ')' before identifier 'guid'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1532) : error C2182: 'mclGUIDtochar' : illegal use of type 'void'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1532) : error C2059: syntax error : ')'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1590) : error C2061: syntax error : identifier 'REFCLSID'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1601) : error C2146: syntax error : missing ')' before identifier 'clsid'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1603) : error C2059: syntax error : ')'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1608) : error C2061: syntax error : identifier 'REFCLSID'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1618) : error C2146: syntax error : missing ')' before identifier 'clsid'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1620) : error C2059: syntax error : ')'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1625) : error C2061: syntax error : identifier 'REFCLSID'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1635) : error C2146: syntax error : missing ')' before identifier 'clsid'
c:\program files\matlab\r2007a\extern\include\mclmcr.h(1637) : error C2059: syntax error : ')'
Error executing cl.exe.
dllexample.obj - 17 error(s), 0 warning(s)
12-29-2009 05:08 AM
12-30-2009 02:12 AM