May 01, 2024, 11:57:38 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Debug question.

Started by J B Wood (Zumwalt), September 08, 2006, 07:12:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

J B Wood (Zumwalt)

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");

??

Parker

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.

J B Wood (Zumwalt)

Thanks, this is the result of your suggestion and it works:


declare cdecl import, OutputDebugStringA(string str);