论坛

封装供 mt5 使用的 dll ,有什么规范?有封装 class 成 dll 后被 mt5 访问的示例文档吗?

大家好: 我想封装一个 dll ,具体需求是: 一、业务需求: 1、想用 c++ 开发,使用 class 来封装应用; 2、目前 c++ 端已经开发好,并打包成功,但不能被 mt5 访问。 二、当前问题: 1、mt5 端引用代码是: #import "mytest\chanlun.h" #import "mytest\mt5dll2.dll" IInterface *IF = IInterface::CreateInterface(); int IF->Add(int a, int b); #import 2、目前报错: 'IInterface' - unexpected token