Support Board
Date/Time: Sun, 19 Jan 2025 19:49:30 +0000
GetPersistentFloatFromChartStudy gives compile error C2039
View Count: 1659
[2018-05-05 23:07:39] |
User787032 - Posts: 37 |
I would like to use the functions to get persistent variables from another study and I built a small test study based on the sample code given for GetPersistentFloatFromChartStudy. However, the compiler lists an error saying that GetPersistentFloatFromChartStudy is not a member of 's_sc'. Do I need to include additional header files for this to compile? #include "sierrachart.h" SCDLLName("test1") SCSFExport scsf_GetStudyPersistentVariableFromChartExample(SCStudyInterfaceRef sc) { SCInputRef ChartStudyReference = sc.Input[0]; if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Get Study Persistent Variable from Chart Example"; sc.AutoLoop = 1; sc.FreeDLL = 0; ChartStudyReference.Name = "Chart Study Reference"; ChartStudyReference.SetChartStudyValues(1, 0); return; } //Get a reference to a persistent variable with key value 100 in the chart and study specified by the ChartStudyReference Input. float & FloatFromChartStudy = sc.GetPersistentFloatFromChartStudy(ChartStudyReference.GetChartNumber(), ChartStudyReference.GetStudyID(), 100); return; } |
[2018-05-05 23:36:41] |
Sierra Chart Engineering - Posts: 104368 |
You need to update to the current version of Sierra Chart. These functions have been renamed. Follow the instructions here: Software Download: Fast Update Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: