From 1b0dfd8b062603bc93f5b9200912ca5e6ad7f09b Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 22 May 2014 16:57:55 -0700 Subject: [PATCH] printf should work now --- Decompiling-Tips-IDA.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Decompiling-Tips-IDA.md b/Decompiling-Tips-IDA.md index aa699cb..7ca7773 100644 --- a/Decompiling-Tips-IDA.md +++ b/Decompiling-Tips-IDA.md @@ -185,13 +185,15 @@ ebx = RCT2_ADDRESS_SPRITE_LIST[ebx]; ### Print debugging -To print statements to the console after RCT2 begins running, include the following header: +Use `printf` or, + +To print statements to the Visual Studio output after RCT2 begins, include the following header: ``` #include "windows.h" ``` -Then use the command [`OutputDebugString`](http://msdn.microsoft.com/en-us/library/aa363362%28VS.85%29.aspx). Sadly printf does not work in some cases. +Then use the command [`OutputDebugString`](http://msdn.microsoft.com/en-us/library/aa363362%28VS.85%29.aspx). ``` OutputDebugString("Hello World!\n");