EDN Admin
Well-known member
Hi everybody !<br/> <br/> I am a Matlab Programmer. I create some Dlls from my .m files.<br/> For the first test, my .m file contains only one function with one argument. the entire .m file is as follows:<br/> <br/>
<pre>function y=test(x)<br/>
y=x^2;[/code]
<br/> <br/> Then, by using the following command , I created the Dll and some other files:<br/> <br/> <br/> <br/>
<div style="color:Black;background-color:White
<pre>mcc -B csharedlib:testlib test.m
[/code]
<br/> <br/> <br/> These files listed below:<br/> <br/> <br/>
<pre>testlib.c
testlib.dll
testlib.exp
testlib.exports
testlib.h
testlib.lib
testlib.prj
testlib_mcc_component_data.c<br/>
[/code]
<br/> Now I want simply write a visaul c++ 2008 windows forms application that use this function.<br/> <br/> There are many topics in forum about Dlls, but I could not use those helps because I very new in VC++.<br/> <br/> If anyone can help me with detailed explanation Ill be very very grateful.<br/> <br/>
View the full article
<pre>function y=test(x)<br/>
y=x^2;[/code]
<br/> <br/> Then, by using the following command , I created the Dll and some other files:<br/> <br/> <br/> <br/>
<div style="color:Black;background-color:White
<pre>mcc -B csharedlib:testlib test.m
[/code]
<br/> <br/> <br/> These files listed below:<br/> <br/> <br/>
<pre>testlib.c
testlib.dll
testlib.exp
testlib.exports
testlib.h
testlib.lib
testlib.prj
testlib_mcc_component_data.c<br/>
[/code]
<br/> Now I want simply write a visaul c++ 2008 windows forms application that use this function.<br/> <br/> There are many topics in forum about Dlls, but I could not use those helps because I very new in VC++.<br/> <br/> If anyone can help me with detailed explanation Ill be very very grateful.<br/> <br/>
View the full article