Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 10:13:50 +0000



[Programming Help] - ACSIL: Moving functions out the .cpp file

View Count: 693

[2021-11-26 11:02:12]
ycomp - Posts: 321
Is there a way to move functions out of the ACSIL .cpp file into another .cpp file?

What's the easiest way to do this? also, I don't use Visual Studio
[2021-11-27 17:17:57]
ForgivingComputers.com - Posts: 1021
Is there a way to move functions out of the ACSIL .cpp file into another .cpp file?
What kind of functions? If they are SCSFExport functions, then yes. Copy the entire function and paste it into another custom study, below any other SCSFExport functions. When compiled, it will appear in the Add Custom Study list for that DLL. Other functions can also be included between the SCDLLName line and the first SCSFExport function. They need to be declared before being called.

What's the easiest way to do this? also, I don't use Visual Studio
You can use the builtin commands on the Ananlysis menu to edit with Notepad++ How to Build an Advanced Custom Study from Source Code
[2021-11-29 23:04:07]
ycomp - Posts: 321
thanks brad, not SCSFExport functions.. just run of the mill functions. I want to create some libraries as right now I'm just copy and pasting some of my functions into different study .cpp files.

for example I have some functions to handle creating and removing text drawings.. I would like to move them to another cpp file that I could call from various studies.
[2021-11-30 00:24:40]
User310645 - Posts: 49
I would suggest getting yourself a compiler and read up on static (.lib) and/or dynamic (.dll) libraries.
[2021-11-30 13:17:12]
ycomp - Posts: 321
ah I think this is why I couldn't figure it out myself before...

Advanced Custom Study Interface and Language (ACSIL): Using Your Own Header Files

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

Login

Login Page - Create Account