DuncanL
02-28-2008, 06:35 AM
Is it possible to output text strings from a C Win32 application that will be captured by VBP?
Basically we have a utility that supports a command line mode to suppress any message boxes and other UI, but I'd like to be able to send any error strings back to the VisualBuild Pro log.
I can do this from a Visual Basic app with ConsoleWrite(), but this other utility is in C and I can't find an equivalent.
Using AttachConsole() and writing to that sort of works from an command prompt (the output is not very tidy, but good enough), but this is not captured by VBP.
Basically we have a utility that supports a command line mode to suppress any message boxes and other UI, but I'd like to be able to send any error strings back to the VisualBuild Pro log.
I can do this from a Visual Basic app with ConsoleWrite(), but this other utility is in C and I can't find an equivalent.
Using AttachConsole() and writing to that sort of works from an command prompt (the output is not very tidy, but good enough), but this is not captured by VBP.