Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 01:31:47 +0000



SCString Format function error

View Count: 588

[2020-08-16 19:15:35]
dnrich - Posts: 18
Hi Sierrachart team,

I have an error on a program that I do not understand. So I made a simple program in the attached file.
Line 23 seems to be the problem.

This code compiles very well (remote). But when I click on "Add custom Study" in sierrachart I have the following message in the logs:

Failed to get the function address for scsf_test22 %d in D:\Perso\_Trading\SierraChart\Data\test_64.dll.dll. Error: Windows error code 127: La procédure spécifiée est introuvable. | 2020-08-16 20:59:44.372 *

This message is also displayed in the custom studies window as you can see in the attached image.

Usually the SCStrings format works fine.

Thanks for your help,

Richard.
attachmenttest.cpp - Attached On 2020-08-16 19:09:21 UTC - Size: 411 B - 216 views
imageerror-20200816.jpg / V - Attached On 2020-08-16 19:09:55 UTC - Size: 454.09 KB - 223 views
[2020-08-17 10:00:15]
Sierra Chart Engineering - Posts: 104368
Change this line as follows:
SCSFExport scsf_test22(SCStudyInterfaceRef sc)

Make sure it does not have a space after the 22.
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
[2020-08-17 13:31:30]
dnrich - Posts: 18
Hi,

Thanks for your reply,

I deleted the space after 22 as you indicated to me. After recompiling I got the exact same error message. On the other hand, if I comment out the line "Message.Format (..." I no longer have an error message.
What is amazing is that I often use this function and it works very well but here there is an error message and the desired message is displayed anyway.

Here are messages displayed in logs after compiling and executing this study:

Loading DLL D:\Perso\_Trading\SierraChart\Data\test_64.dll | 2020-08-17 15:25:15.466
Failed to get the function address for scsf_test22 %d in D:\Perso\_Trading\SierraChart\Data\test_64.dll.dll. Error: Windows error code 127: La procédure spécifiée est introuvable. | 2020-08-17 15:25:15.657 *
Chart: F.US.MESU20 1 Min #2 | Study: test 2 | scsf_test22 100 | 2020-08-17 15:25:20.304 *
Chart: F.US.MESU20 1 Min #2 | Study: test 2 | scsf_test22 100 | 2020-08-17 15:25:20.304 *

As you can see the number 100 is displayed twice as expected.

Best regards,

Richard.
[2020-08-17 19:01:56]
Sierra Chart Engineering - Posts: 104368
We see the issue, remove the use of scsf_test22 within text strings. You cannot use it like that.

Our prior answer as to the reason for the problem was not correct. And thinking about it more, it really does not make sense that was the problem.
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

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

Login

Login Page - Create Account