engwindemo.exe - Entry Point Not Found
Mostrar comentarios más antiguos
I want to use MATLAB as a COM server, so I was testing the COM interface using engwindemo.c as described in https://www.mathworks.com/matlabcentral/answers/164250-how-can-i-compile-a-matlab-engine-application-using-microsoft-visual-studio-2012
Whilst there are a couple of other compile parameters required if creating engwindemo.exe using Visual Studio 2013 and above, once I compiled engwindemo.exe and ran it, the MATLAB Command Window opens and then I get the following error message:
"The procedure entry point could not be located in the dynamic link library
C:\Program Files\MATLAB\R2017b\bin\win64\libmwms.dll"
(See attached screenshot 2017-12-10 MATLAB engwindemo.exe error).
When I click "OK" to that error message I get a second error message:
"Can't start MATLAB engine"
(see attached screenshot 2017-12-10 engwindemo.exe error (2)).
The error would appear to originate in the "engOpen" command in engwindemo.exe:
/*
* Start the MATLAB engine
*/
if (!(ep = engOpen(NULL))) {
MessageBox((HWND)NULL, (LPSTR)"Can't start MATLAB engine",
(LPSTR) "Engwindemo.c", MB_OK);
exit(-1);
}
I've tried creating engwindemo.exe in Visual Studio 2013, 2015 & 2017, each time I get the same result.
Here is the compilation configuration:

Any help would be greatly appreciated.
Thank you in advance.
3 comentarios
Walter Roberson
el 3 de En. de 2018
To check: is it possible that you are trying to use the engine from a 32 bit executable?
Respuestas (1)
kuan jiang
el 17 de Dic. de 2019
0 votos
I also have the same question ,did you figure it out ?
1 comentario
Gary
el 17 de Dic. de 2019
Categorías
Más información sobre Call MATLAB from C 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!