Support Board
Date/Time: Sun, 06 Jul 2025 20:15:59 +0000
Post From: Calling OutputDebugStringW of kernel32.dll from the code, is it possible?
[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 |