Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 10:24:04 +0000



[Programming Help] - How do I call a study in a seperate studies dll

View Count: 321

[2023-02-11 06:21:06]
User305536 - Posts: 52
Hello, I have created a main DLL lets call it my loader, and I am attempting to LoadLibrary and GetProcAddress
for the study contained in a seperate DLL.

So far I can successfully LoadLibrary and GetProcAddress of a particular study, BUT I have no idea about how to run the EXTERNAL STUDY.

Is this possible? or is it only possible for external FUNCTIONS?

I am loading the DLL like this...
HMyCustomDll = LoadLibrary("API\\MyCustomStudies_64.dll");  

and referencing the study like this...
ProcAdd = (MYPROC) GetProcAddress(HMyCustomDll, "scsf_numberflow");

but now I have no idea about how to make the study run.

Maybe someone has done this before, I dont know.

Allan
[2023-02-13 06:02:59]
User305536 - Posts: 52
I figured it out... What I did was create functions that held code for the real processing portion of the study. These functions were exported and then in the parent loader dll I made the declarations of the study and then for real processing I pointed to the exported function in the child DLL. works beautiful. By the way, doing this means that globals in the child DLL also need be in the loader.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account