API Console.GetDefault: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
* Declare a variable 'result' of type HANDLE | * Declare a variable 'result' of type HANDLE | ||
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Console.GetDefault()</pre> | * Add to a calculation icon: <pre class="brush:[cpp]">result = ::Console.GetDefault()</pre> | ||
Revision as of 11:55, 16 January 2023
| GetDefault | |
| Gets the default (read-only) console window | |
| Return | |
Detailed description
A default console is provided to allow easy debug and diagnostic to be displayed. As this is shared for all components it does not make sense to allow the user to input into this. However each component can write to this using the default console handle.
Examples
Calling in a calculation
- Declare a variable 'result' of type HANDLE
- Add to a calculation icon:
result = ::Console.GetDefault()