【问题标题】:Is there a way to ⎕NA import a dll exported C++ class in dyalog APL?有没有办法 ⎕NA 在 dyalog APL 中导入 dll 导出的 C++ 类?
【发布时间】:2019-07-13 22:50:19
【问题描述】:

我有一个导出 C++ 类的 .dll。有没有办法使用 ⎕NA 将这个类导入到 Dyalog APL 中?

我正在查看 DLL 导出查看器,我的班级正在以我期望的方式导出。我还编写了一个 C++ 测试应用程序,它导入 .dll 并使用该类,它的功能与我期望的一样。

// built with default Visual Studio 2019 settings
class __declspec(dllexport) MyClass
{
public:
    void Func();
}

我需要一个示例 ⎕NA 语句来说明从 .dll 导入 Dyalog APL 的 C++ 类。像这样的:

'MyClass' ⎕NA 'what expression goes here'
mc←⎕NEW MyClass ⍝ or something similar

【问题讨论】:

标签: c++ class dll apl dyalog


【解决方案1】:

您是否阅读过“名称关联”的说明? http://help.dyalog.com/latest/Content/Language/System%20Functions/na.htm 我想这可能会有所帮助。文末有一些例子。

【讨论】:

    猜你喜欢
    • 2017-10-29
    • 1970-01-01
    • 2017-05-03
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-04
    相关资源
    最近更新 更多