IonicWind Software

Aurora Compiler => General Discussion => Topic started by: J B Wood (Zumwalt) on September 08, 2006, 07:12:41 AM

Title: Debug question.
Post by: J B Wood (Zumwalt) on September 08, 2006, 07:12:41 AM
Say I have a game and I want to print out info to the Debug tab while it is running.
What is the basic command to print to it?
Debug.Print("something");

??
Title: Re: Debug question.
Post by: Parker on September 08, 2006, 09:07:20 AM
You should use the OutputDebugString API:
import void OutputDebugString alias "OutputDebugStringA" ( string str );

I think there is also an OutputDebugStringW which takes a wstring argument.
Title: Re: Debug question.
Post by: J B Wood (Zumwalt) on September 08, 2006, 10:32:10 AM
Thanks, this is the result of your suggestion and it works:


declare cdecl import, OutputDebugStringA(string str);