Support Board
Date/Time: Sun, 06 Jul 2025 14:26:39 +0000
Calling OutputDebugStringW of kernel32.dll from the code, is it possible?
View Count: 1114
[2019-06-06 08:49:58] |
User932967 - Posts: 18 |
I come from years of programming in Metatrader 4 and 5 and for the debug of long and complex programs I have been using the OutputDebugStringW function inserted with the following code: #import "kernel32.dll" void OutputDebugStringW (string sMsg); #import in this way, at any point in the program, I can make a call like this: int b = 10; string Text = "A" + b + "C"; OutputDebugStringW (Text); and installing and starting the Microsoft Dbview I see the values that the OutputDebugStringW function sends.. A tool that, practically by itself, allows me to execute any type of debug quickly and effectively, without the use of the internal Metatrader debugger or Visual Studio in the case of SierraChart, also outside the debug phase, on a program that works in real. I am convinced that something similar can also be done in SierraChart but I do not have the specific knowledge to do it.. I would be really grateful if someone could tell me how to do it.. I think this feature would be much appreciated by many users. Thanks Piero |
[2019-06-06 17:16:18] |
|
Using the ACSIL interface, you can use the following function to add a string to the Sierra Chart Message Log for debugging or for any other purpose. : ACSIL Interface Members - Functions: sc.AddMessageToLog() 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-06-06 17:16:33
|
[2019-06-07 08:38:21] |
User932967 - Posts: 18 |
ok, thanks
|
To post a message in this thread, you need to log in with your Sierra Chart account: