2 registered members (TipmyPip, 1 invisible),
18,731
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: cout << "?" available?
[Re: Damocles_]
#287856
09/02/09 20:46
09/02/09 20:46
|
Joined: Dec 2006
Posts: 1,086 Queensland - Australia
Nidhogg
Serious User
|
Serious User
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
|
don't know if this will do it for you but try this. VC 2005 Express
#include<Windows.h>
#include<stdio.h>
#include<io.h>
#include<fcntl.h>
#include<conio.h>
void SCRprintf( const char* x)
{
va_list args;
va_start( args, x );
vprintf( x, args );
va_end( args );
}
Windows XP SP3 Intel Dual Core CPU: E5200 @ 2.5GHz 4.00GB DDR3 Ram ASUS P5G41T-M LX PCIE x16 GeForce GTS 450 1Gb SB Audigy 4 Spyware Doctor with AntiVirus
|
|
|
Re: cout << "?" available?
[Re: Damocles_]
#287878
09/03/09 00:22
09/03/09 00:22
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
I doubt this will work... other than adding the variable to track in SED self and run the debug version, I don't think you can write anything to SED immediately.
Last edited by Joozey; 09/03/09 00:23.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: cout << "?" available?
[Re: Damocles_]
#288015
09/03/09 16:19
09/03/09 16:19
|
Joined: Jan 2003
Posts: 4,615 Cambridge
Joey
Expert
|
Expert
Joined: Jan 2003
Posts: 4,615
Cambridge
|
I personally never use a debugger, as this method can find bugs even quicker, than stepping though code. I quite disagree with that. With a debugger you don't have to code additional lines of output and furthermore you can add variables to be watched in debug mode. No need to rerun the program. But I'm speaking of good debuggers here, like the one for Visual Studio. I never made up with the one SED provides.
|
|
|
Re: cout << "?" available?
[Re: Damocles_]
#288037
09/03/09 18:26
09/03/09 18:26
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
Thanks, its a helpful app.
Maybe you could develop this further to a full logger prog.
(with alternative functions to write variables + Strings mixed) You can easily accomplish this by using file_var_write. All that LCConsole.exe does is watch that .txt file, and when it is changed it displays the output. So you can use any GS function to modify the .txt file, and it will be displayed in the console.
|
|
|
|