Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 07:44:02 +0000



Update documentation to support latest version of Visual Studio

View Count: 2525

[2019-05-20 14:57:33]
grantx - Posts: 244
Step-By-Step ACSIL Debugging

Is it possible to update your documentation? A lot of it is out of date. I am attempting to teach myself ACSIL using your documentation but Im not sure how to connect and debug an instance of SierraChart with the newer software.

Or do you recommend downloading and installing the old Visual Studio?
[2019-05-20 15:10:56]
Sierra Chart Engineering - Posts: 104368
We will release the updated documentation today.
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
[2019-05-21 15:03:46]
grantx - Posts: 244
Thanks for updating the documentation.
I have followed it step by step. I can connect to the Sierrachart process just fine and load up the CPP file just fine but when I set the breakpoint and hover over it the message says:

The breakpoint will not currently be hit. No symbols have been loaded for this document.

When I recalculate the chart, the breakpoint is not hit.

Here is the code I am using:

#include "sierrachart.h"
/****************************************************************************/

SCDLLName("Hor Line")
SCSFExport scsf_HorizontalLine(SCStudyGraphRef sc)
{
  // Configuration
  if (sc.SetDefaults)
  {
    sc.GraphName = "Horizontal Line"; // study name shown in Chart Studies window

    sc.StudyDescription = "Test of horizontal line";

    sc.AutoLoop = 1; // true

    sc.GraphRegion = 1; // zero based chart region number

    // During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance.
    sc.FreeDLL = 1;
    
    sc.Subgraph[0].Name = "Line";
    sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE;
    sc.Subgraph[0].PrimaryColor = RGB(0,255,0); // green
    
    sc.Input[0].Name = "Line Value";
    sc.Input[0].SetFloat(50); // default value
    sc.Input[0].SetFloatLimits(1, 20000); // min-max value
    sc.FreeDLL = 1;
    
    return;
  }
  
// Data processing

  sc.DataStartIndex = 0;


  float LineVal = sc.Input[0].GetFloat(); // get integer value from Input 0
  
  sc.Subgraph[0][sc.Index] = LineVal;
}

[2019-05-21 15:32:55]
Sierra Chart Engineering - Posts: 104368
To do debugging, you need to have built the DLL with Analysis >> Build Custom Studies DLL >>Build >>Build with Visual C++ - Debug. Was that the case?
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
Date Time Of Last Edit: 2019-05-21 15:33:06
[2019-05-21 15:41:42]
grantx - Posts: 244
No. My apologies, I didn't see that part. Will try it out.
[2019-05-21 20:09:35]
grantx - Posts: 244
Same error message.
I have:

- Installed visual C++ compiler (Build >> Install Visual C++ Compiler.)
- Installed Visual Studio 2019
- Built the CPP file BUT there is not an option such as "Build with Visual C++ - Debug" = The Debug part isnt there see screenshot

WHen I select "Build with Visual C++" (No -Debug remember because I dont have that as an option) it seems to work because I get:


-- Starting build of Custom Studies Source files: G7.cpp. -- 20:58:26

C:\WINDOWS\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat"


C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
G7.cpp
Creating library G7.lib and object G7.exp
Generating code
Finished generating code
-- End of Build -- 20:58:29

Then I:
- Open Visual Studio and load up the CPP file.
- Attach to SierraChart64 using native mode
- Put the breakpoint and get the same error message as before.
The breakpoint will not currently be hit. No symbols have been loaded for this document.

Because I could not build with the debug option I do not have that important .PDB file Im supposed to have.

What next Sierra? What else do I have to do?
image2019-05-21_21-06-22.png / V - Attached On 2019-05-21 20:07:05 UTC - Size: 43.35 KB - 461 views
[2019-05-22 00:47:29]
Sierra Chart Engineering - Posts: 104368
Update to the latest version of Sierra Chart and you will have the option for Build With Visual C++ - Debug.

The instructions to perform a Fast Update can be found 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
[2019-05-22 09:04:04]
grantx - Posts: 244
Well Ill be a multi coloured horn back toad. It works. Not without a significant level of frustration though. Mostly because of Microsoft and the order in which you have to install the software.

DO NOT install Visual Studio until you have installed vc_redist.x64.exe by executing this from sierra:
Build >> Install Visual C++ Compiler.
If you f*** this up and install VS first then you have to uninstall everything and manually uninstall C++ 2015 redistributable from the command line:
vc_redist.x64.exe /uninstall

Then re-install the Visual C++ Compiler. Only then can you think about Visual Studio.
Remember kids, none of this will work unless you have updated to the latest version of Sierra chart. Dont go rage monkey like I did....just do it in that order and save yourself a world of frustration.
[2019-05-22 16:00:17]
Sierra Chart Engineering - Posts: 104368
We were not aware that a redistributable package was needed. Could be because we may have already had it on our system.
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
[2021-07-28 19:06:39]
User403628 - Posts: 4
FYI - I installed the Visual Studio Community 2019 addition -
I was not able to successfully compile until I checked the following under installation details: MSVC v14.0 - VS 2015 C++ build tools
After that I can compile using the Build with Visual C++ - Debug option in Sierra Chart.

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

Login

Login Page - Create Account