Getting the SDL.dll to print to a console window under Windows?

Is there a way I can build the SDL.dll (in VisualC++) to print out the statements contained within the DEBUG_TIMERS defines to a console window, so that I can actually see what values I am passing to the .dll, and the values that the .dll is attempting to pass back ?

I’m trying to get the addTimer callback to work in a Lisp environment but am experiencing constant crashes. I can’t statically link to the DLL, it has to be dynamic.

Thanks,
-Luke

Is there a way I can build the SDL.dll (in VisualC++) to print out the statements contained within the DEBUG_TIMERS defines to a console window, so that I can actually see what values I am passing to the .dll, and the values that the .dll is attempting to pass back ?

I’m trying to get the addTimer callback to work in a Lisp environment but am experiencing constant crashes. I can’t statically link to the DLL, it has to be dynamic.

I’m not sure how it works in a lisp environment, but in C and C++ there is
a library SDLmain.lib which contains code to redirect stdio to stderr.txt and
stdout.txt in the current directory.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Windows ?

I’m not sure how it works in a lisp environment, but in C and C++ there is
a library SDLmain.lib which contains code to redirect stdio to stderr.txt
and
stdout.txt in the current directory.

Yes, I noticed this when I was browsing the source. Unfortunately I can’t
link to a .lib, only a .dll.

So I basically copy/pasted the code from SDLmain so now I am able to output
to a file from the standard SDL.dll, which seems to work fine so far.

-Luke

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Tuesday, June 10, 2003 8:03 AM
Subject: Re: [SDL] Getting the SDL.dll to print to a console window under