Hi Fred,

>http://cvs.flightgear.org/cgi-bin/viewvc/viewvc.cgi/source/simgear/debug/logstream.hxx?annotate=1.9&root=SimGear-0.3

Wow, thank you for this pointer ... what a fantastic
colour coded 'historic' view you get of the file,
ANY file ... I will now REMEMBER this http access ...
and then viewing the log showed me that at that moment,
your latest patch was 12 hours 41 minutes old ... what
precision ;=)) I had already seen them in a CVS update ...

And at -
http://cvs.flightgear.org/cgi-bin/viewvc/viewvc.cgi/source/src/Main/bootstrap.cxx?view=log
I can now read your modification 2 years 6 months ago,
to try to 'hide' the console ... hmmm, there was
a period about 2.5 years ago where I dropped out
of FG for a few months - I moved to Australia
for two years, and initially had no computer, nor
easy access ;=)) I even turned off the digest ...

Anyway, thanks for the quick cvs update ... have
updated SG logstream.[c|h]xx, and FG
bootstrap.cxx, plus 13 others altered since
my last build ;=)), but this does NOT YET
solve the 'problem' completely ...

In MSVC8, only NOW do I note you have REMOVED the
_CONSOLE subsystem define, and put _WINDOWS into
the MSVC8 'solution' file ...

Yes, I can understand that initially you wanted
to NOT open a console window (because it did not
look 'professional' ;=/), but after you FOUND
that you have to call AllocConsole(), or cerr can
freeze, why NOT put FG back to what it is, A
CONSOLE APPLICATION?!!!?

I had always 'wondered' why using the 'solution'
files instead of the DSW/DSP files 'felt' a little
different ;=().

BACK TO BASICS! I loaded the DSW/DSP into MSVC8 ...
let it do its 'conversion', made the myriad of
adjustments to include paths, include libraries,
and their respective paths, etc ... and build it
all again ...

For good measure I chopped out your WinMain in
bootstrap.cxx using -
#ifndef _CONSOLE

#endif // NOT REQUIRED FOR CONSOLE APP
but this is not really required ... just as a
reminder ...

Of course, I ended up building it several times
until I got 'everything' RIGHT ... there are
so many little things to 'change' ... and some
changes cause it to 'start again' ... BAH!

Then, am2dsp.pl had not been run for a
while so I had to correct the source file list,
like removing hud_lat.cxx and hud_lon.cxx ... in
fact I got so sick of this, that I ran my own
version of am2dsp.pl to generate a 'reasonable'
DSP file as a starting point ...

A bit like the 'solution' files, it generates a
single list of sources all as one FG application ...
no separation into 'library' folders ... much easier
to find a file in a single alphabetic list ...

And I separate source and headers ... this produces
a trimmed DSP file ... 75K instead of the original
230K beast ... about the same as the vcproj
files ...

But my current am2dsp.pl version is pretty messy!
At one point I had the idea to use it to modify
the vcproj files as well, but eventually abandoned
that ... but have not ripped out all the added
code ...

NOW I HAVE A MSVC8 CONSOLE APPLICATION!, that acts
like a console application should ... redirection
works fine, and when using fgrun, the messages are
to the console, kept open by fgrun ... you have to
remember to enlarge the screen buffer, or else you
only get a few of the last page ... but it works ...

At present, the vcproj 'windows' application will
NOT do re-direction, nor use fgrun's console, since
WinMain() is called, which sets has_console false ...
which causes SG to do the AllocConsole(), etc ...

So to Maik, and others ... if you want re-direction,
then use the DSW/DSP starting point ... or swap out
_WINDOWS define for _CONSOLE before building in
MSVC8 ...

As stated, thanks for your help on this Fred ...

Best regards,

Geoff.

PS: I have sometimes wondered where the AI planes
go, and was 'startled' to find that after chasing
one in the UFO - giving the passengers something
to talk about - it simply 'disappears' after reaching
about 27,000 feet, maybe 10 minutes or so into the
flight - now I know they just go into a big bit
bucket ;=))

EOF - fgd-005.doc

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to