討論區列表
MultiCharts
一般模式
討論串模式
標題:
[發問] 請教呼叫不到dll函數問題
by 2022-07-20 09:34:49
0
暱稱:
5PU
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
小弟我剛開始學DLL撰寫,powerLanguage
指標程式中
可以抓到DLL檔但抓不到裡面的自定義函數,想請教有開發過dll的大大們解惑:
C++:
#include "pch.h" // use stdafx.h in Visual Studio 2017 and earlier
#include <utility>
#include <limits.h>
#include "MathLibrary.h"
int __stdcall my_function(int x)
{
x = (x > 0) ? x : 0;
return x;
}
log:
已開始重建...
1>------ 已開始全部重建: 專案: MathLibrary, 設定: Release x64 ------
1>pch.cpp
1>dllmain.cpp
1>MathLibrary.cpp
1> 正在建立程式庫 C:\Users\rewu0\source\repos\MathLibrary\x64\Release\MathLibrary.lib 和物件 C:\Users\rewu0\source\repos\MathLibrary\x64\Release\MathLibrary.exp
1>正在產生程式碼
1>Previous IPDB not found, fall back to full compilation.
1>All 11 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1>已完成程式碼產生
1>MathLibrary.vcxproj -> C:\Users\rewu0\source\repos\MathLibrary\x64\Release\MathLibrary.dll
==========全部重建 : 成功 1 個,失敗 0 個,略過 0 個==========
PowerLanguage(指標):
[LegacyColorValue = TRUE];
DEFINEDLLFUNC: "C:\Users\rewu0\source\repos\MathLibrary\x64\Release\MathLibrary.dll", int, "my_function", int;
inputs: Price(Close);
variables: test(0);
test = my_function(3);
plot1(test, "from_dll_func" , green);
第1篇:
[發問] 請教呼叫不到dll函數問題
by 2022-07-20 09:37:18
0
暱稱:
5PU
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
更正一下,呼叫錯誤如下:
第一頁
上一頁
1
下一頁
最後頁
討論區列表
MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定