Support Board
Date/Time: Thu, 31 Oct 2024 12:15:20 +0000
[User Discussion] - set sc.FreeDLL by global constant
View Count: 857
[2016-01-01 22:32:40] |
KhaosTrader - Posts: 128 |
Hi, I have several studies in a cpp file, and I was wondering if I can set each of the sc.FreeDLL to a glabal scope variable such that if i am not debugging I can change the value to 0 and do a compile. This would save me having to hunt for each sc.FreeDLL and set it to 0 for deployment and then have to reset it in each place to 1 when debugging. Thanks in advance. |
[2016-01-02 04:54:08] |
ejtrader - Posts: 688 |
You can do the following to get the result you are looking for: on the top of the cpp file - immediately after includes - you can have the following line: const int FREEDLL = 1; and in defaults section: sc.FreeDLL = FREEDLL; Pseudo code below: #include "sierrachart.h" const int FREEDLL = 1; if (sc.SetDefaults) { sc.FreeDLL = FREEDLL; } |
To post a message in this thread, you need to log in with your Sierra Chart account: