CB调用Matlab的问题
#include <vcl.h>
#pragma hdrstop
#include "Engine.h"
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Engine *ep;
if (!(ep = engOpen(NULL))) {
MessageBox ((HWND)NULL, (LPSTR)"Can't start MATLAB engine",
(LPSTR) "Engwindemo.c", MB_OK);
exit(-1);
}
engEvalString(ep, "ezplot('sin(x)+2*x');");
engClose(ep);
}
lib文件也添加了,但是运行时出错为:Unable to open include file 'Engin.h'
下面还有一堆错误就不用说了,
请问这是怎么回事啊,是不是CB没有装全,少了什么文件?
高手帮忙啊!!!1!!!!!,谢谢