1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "engine.h"
#define BUFSIZE 256
static double Areal[6] = { 1, 2, 3, 4, 5, 6 };
int PASCAL WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int nCmdShow)
{
Engine *ep;
/*
* Start the MATLAB engine
*/
if (!(ep = engOpen(NULL)))
{
MessageBox ((HWND)NULL, (LPSTR)"Can't start MATLAB engine", (LPSTR) "Engwindemo.c", MB_OK);
exit(-1);
}
else
MessageBox ((HWND)NULL, (LPSTR)"MATLAB engine start", (LPSTR) "Engwindemo.c", MB_OK);
engClose(ep);
return(0);
} |
Partager