Login Page - Create Account

Support Board


Date/Time: Mon, 24 Feb 2025 21:54:54 +0000



Post From: Request for VS2019 template- either Project or Solution for SC X64 dlls to put my custom

[2021-03-17 01:24:22]
silvereagle - Posts: 23
Hi friends,

I am able to build a custom study via the remote build, however, I wanted to use Visual Studio for more control --and ran into trouble. I’ve gone step by step through trying to build a custom study with Visual Studio and I think I’m really close --but no cigar. Hoping someone might be able to point out a missed configuration setting or otherwise point me in the right direction.

SierraChart Version: 2231 64-bit
Visual Studio 2019 (C++ Dev Package) --> Running on Parallels (Basically Mac Running Windows 10 with Visual Studio installed)

1. Create Empty Solution (HelloWorld)

2. Configure Solution Build Properties
- Debug: x64
- Release: x64

3. Configure Project Properties

+ General

- Target Name: $(ProjectName)_64. --> outputs file named HelloWorld_64.dll to conform to SC naming conventions
- Configuration Type: Dynamic Library (.dll)

+ C/C++

- Additional Include Directories: /Path/To/SierraChart2231/ACS_Source
- Precompiled Headers: Not Using Precompiled Headers

4. Add HelloWorld.cpp

5. Paste in the same code that builds Remotely with Sierra.

6. Change the #include statement at the top of the file to point to sierrachart.h:
+ #include “C:\Users\curt\source\SierraChart2231\ACS_Source\sierrachart.h”

7. Changed SCDLLName
+ SCDLLName(“HelloWorld Study DLL”)


After I get this set up, I am able to build successfully and get my HelloWorld_64.dll.
Next, I copy/paste the dll into the SierraChart2231/Data directory (where the other remotely built studies/dlls are)
Next, I then restart Sierra and look at the log and see no errors.

I do see a log line that looks like this:

DLLs: HelloWorld_64.dll UserContributerdStudies_64.dll

So it it seems Sierra picks up the dll, however when I try to add the study to a chart, I do not see it available to select. Viewing the message log, I can see UserContributedStudies.dll loaded, but I do not see anything for the custom HelloWorld_64.dll. I imagine if it loaded successfully there would be a line like:

Loading DLL: /Path/To/SierraChart2231/HelloWorld.dll (HelloWorld_64.dll). Handle dc00000 | etc... etc... but there is not, so I assume the it's not loading properly for some reason and thus not available for selection.

I’ve been scouring the boards and found that some say that studies don’t show in the GUI if they were compiled for a mismatched architecture, that is to say compiling 32 bit when you’re running 64, however, I made sure I’m compiling for 64 bit and that Sierra is running 64 bit.

I’m stumped.

I would super appreciate any ideas on what I can either double check configuration wise or any other troubleshooting steps to get a "hello world" going...

thanks :)