Support Board
Date/Time: Mon, 24 Feb 2025 21:58:50 +0000
Post From: Request for VS2019 template- either Project or Solution for SC X64 dlls to put my custom
[2020-04-23 16:04:29] |
JohnR - User831573 - Posts: 314 |
I have an additional "\" slash at the end. Not sure if that is it. C/C++ > General > Additional Include Directories > slash added to end C:\SierraChart\ACS_Source\ instead of C:\SierraChart\ACS_Source I am converting my code from another platform so I am keeping each study in its own dev project/sol and when tested and working as designed, putting the study into a run-time version of all studies, within one set of files with sc.FreeDLL = 0: For me to consistently work - be able to debug, and also end up with with a working .dll in ...Data dir, I am using the suggestions given by Flipper. Make sure you have the things he points out in his 3 .PNG files. Also, it could be I am old and losing an edge (less brain cells), I am following steps listed below as I make a new solution. I am doing one for each indicator, as I wanted to migrate each one and keep them separate during dev / debug. When I tried things like Add->existing source file, or some other try at using prior built templates, I had a failure either in it couldn't find stuff, or errors in the compile. Sequence I took to be able to compile & debug within VS2019 Community Ed. and SierraChart 64 bit bld 2091 1 - Always create a new empty project. Naming it what you choose, placing it in dir structure you choose. 2 - Now to add a new C++ source file. Also name it what you want. 3 - Time to set properties - options & configurations. Keeping with Flippers suggestions, start with the Solution. - Make sure you end up with correct platform. x64 or x86. 4 - Next set properties for Project 5 - Set properties for .cpp - source file 6 - Next I open a view / window to see the empty source file. 7 - Copy / Paste the source of your indicator code into this file. - I've been using NotePad++ as the program to open my sample pieces of code to be using in this indicator. - And since it works and it repeatable, I will do it this way, but smarter people may be able to do it all in VS easier. 8 - Save .cpp file and then do Save All You should now be ready to 'Build" and then start a debug session if you want Hope this helps. JohnR Date Time Of Last Edit: 2020-04-23 16:34:40
|