Support Board
Date/Time: Tue, 15 Apr 2025 14:23:57 +0000
[Programming Help] - UDP Build w/ Visual C++
View Count: 189
[2025-03-28 14:14:54] |
Gradient - Posts: 118 |
Hi, I've reviewed the UDP documentation:https://www.sierrachart.com/index.php?page=doc/UDPAPI.html. Is it possible to send a command for Build w/ Visual C++? Thanks |
[2025-03-28 22:54:35] |
ondafringe - Posts: 320 |
if you're using Visual Studio, just build/deploy from within VS.
|
[2025-03-29 00:22:17] |
Gradient - Posts: 118 |
I'm triggering the build from the developer command prompt. It creates the .lib, .exp, .obj files but it appears that changes to the source file aren't taking effect. When I run from the Build menu built within Sierra, the changes from the source are reflected in the study. I'm trying to troubleshoot why this is. The purpose of using the CLI is to create a batch process that will build several DLLs. Date Time Of Last Edit: 2025-03-29 00:23:29
|
[2025-03-29 12:58:49] |
ondafringe - Posts: 320 |
So when you build from the dev command prompt, you aren't getting a new DLL with a new date/time stamp?
|
[2025-03-29 16:33:32] |
Gradient - Posts: 118 |
I'm getting a new DLL with a new timestamp. However, when I load the study changes made to the source file (i.e. changing subgraph names for testing) they aren't reflected. |
[2025-03-29 17:04:29] |
ondafringe - Posts: 320 |
I don't build from the prompt, but... If you aren't already doing this, and assuming you had/have SC open during the build, it might be you need to run some Powershell script files, one that releases the old DLL "before" you build, and then reloads the new DLL after you build. Might be worth a try. I have attached the two Powershell script files I use when building from within VS that perform the release/reload process. You should be able to call Powershell and run them from the prompt. In the script files, change "your.dll" to the name of your DLL (without the quotes), and set the $peerPort in the two files to the UDP port you are using in SC. If that doesn't help, I'm out of ideas. Date Time Of Last Edit: 2025-03-29 17:44:53
|
Private File Private File |
[2025-03-29 17:40:21] |
Gradient - Posts: 118 |
Thanks. I'll give it a try.
|
[2025-03-30 02:09:46] |
Gradient - Posts: 118 |
I fixed the issue. When building directly from within Sierra, a call is made to vcvarsall.bat. I made this call from the developer command prompt then triggered compilation. I then had to place the DLL in the "SierraChart\Data" directory as I was in the ACS_Source directory and release the compiled study then Allow All DLLs. When I loaded the study it reflected the most recent changes. |
[2025-03-30 03:03:35] |
ondafringe - Posts: 320 |
Good. Glad you got it working.
|
To post a message in this thread, you need to log in with your Sierra Chart account: