Support Board
Date/Time: Sun, 24 Nov 2024 15:55:57 +0000
[Programming Help] - LoadLibrary for call function issue
View Count: 189
[2024-05-20 15:46:33] |
AliAmir - Posts: 2 |
I have a file named.code.cpp And another file named study.dll I want use study from other .dll file ,to add some my custom code before that When i want to run this to call function from dll. And set on chart: SCSFExport scsf_CountDownTimer(SCStudyInterfaceRef sc)}{ But on this line: HINSTANCE hGetProcIDDLL = LoadLibrary("study.dll"); f_funci funci = (f_funci)GetProcAddress(hGetProcIDDLL, "scsf_CountDownTimer"); Sierra crashes with this alert: Failed to get the function address for scsf_CountDownTimer in C:\SierraChart\Data\study.dll. Error: Windows error code 127: The specified procedure could not be found. * The Custom DLL study has just caused a CPU exception. Please help me to fix this problem |
[2024-05-21 00:17:52] |
ForgivingComputers.com - Posts: 960 |
I am not an expert at C++, I just write Custom Studies with ACSIL. I know nothing about this: HINSTANCE hGetProcIDDLL = LoadLibrary("study.dll");
f_funci funci = (f_funci)GetProcAddress(hGetProcIDDLL, "scsf_CountDownTimer"); But, as far as I know, only the Sierra_Chart_64.exe process can call a custom study DLL. Unless you have the study.cpp file from which the DLL was built, I don't think a new custom study can incorporate an existing DLL. Of course, the subgraphs from study.dll can be read by your study, but you cannot change the inputs to study.dll if it was not designed to allow that. Date Time Of Last Edit: 2024-05-21 00:20:30
|
To post a message in this thread, you need to log in with your Sierra Chart account: