Hmmm... doesn't seem to work from VC6 - that's what I had originally before delving into the depths of AttachConsole().
In the end I have added a new build target that produces a proper command line app - just added an old style main() in addition to the winmain() and I can use all the same code, just from a different start point.
Thanks for the help anyway.
|