Creating EXE with DLL attached
Mostrar comentarios más antiguos
Let say i have 2 m files:
%%% first m file
.m
function mainapp
global a b c
a=5;
dllfile
c=a+b;
figure(1)
text(0.5,0.5,num2str(c));
%%% second m file
dllfile.m
function dllfile
global a b c
b=4;
%%%
My question is how do i create mainapp.exe and dllfile.dll so they are functional when i start mainapp.exe from windows?
Also, if this above is possible, am i going to be able to change for example only dll file (compile newer version which does, for example b=3 instead of b=4) and continue to use mainapp.exe?
Thank you in advance
I have Windows 7 32bit
Matlab 2008b
Microsoft Visual Studio 2008
Respuesta aceptada
Más respuestas (1)
Drago Zarkovic
el 16 de Abr. de 2012
Categorías
Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!