Login Page - Create Account

Support Board


Date/Time: Wed, 30 Apr 2025 10:51:19 +0000



[Programming Help] - What version check to do for an ACSIL study?

View Count: 69

[2025-04-26 03:29:48]
LTSys2 - Posts: 25
I noticed a couple places to get a version number in the SC API.

If I want to share my study that I built on SC version 2744 and I give it to someone who might be running an older version of SC how would I do that check in the code?

This one...


if(atoi(sc.VersionNumber().GetChars()) != 2744)
return false;

Or this one...


if(sc.ACSVersion != 2744)
return false;

TIA
Date Time Of Last Edit: 2025-04-26 03:30:50
[2025-04-26 15:13:59]
ForgivingComputers.com - Posts: 1052
You won't be able to load a DLL built with a newer version onto a previous version.

You can name your files with minimum version supported, so you can support both versions:

My_Study_2739.cpp

and

My_Study_2744.cpp

[2025-04-26 18:14:26]
LTSys2 - Posts: 25
Thanks for clarifying.

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

Login

Login Page - Create Account