LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a Matlab 7.4 dll in Labview 8.6(Using MSVC6 (sp6))

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) 

0 Kudos
Message 1 of 3
(3,993 Views)
There are lot of syntax error too. Did you try correcting them?
0 Kudos
Message 2 of 3
(3,941 Views)
I would say you somehow miss some header. Most if not all errors seem to be caused by the missing of the declaration of the REFCLSID identifier.
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(3,925 Views)