CB调用Matlab的问题

gengyuan88 2003-08-22 10:22:50
#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!!!!!,谢谢
...全文
59 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
CityHost 2003-08-22
  • 打赏
  • 举报
回复
'Engin.h'所在的目录是否添加到BCB的Include里面,如果是,请确认有没有Engin.h还是Engin.hpp。
gengyuan88 2003-08-22
  • 打赏
  • 举报
回复
怎么没有人回答我啊,是不是太难了?:(

13,822

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧