I know of two choices:
1) Use AttachConsole(), but AttachConsole() is only available on XP+
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/attachconsole.asp
2) Create a .com binary that will spawn the .exe binary.
See: http://msdn.microsoft.com/msdnmag/issues/04/02/CQA/default.aspx
Are there any alternatives?
(AttachConsole() like behavior on Win98+ systems would be a big win).
Regards
Pieter
You could just make it a console app. Console apps can register windows
and have message loops. Of course, that means the command line won't
return until the program ends.
>I know of two choices:
>1) Use AttachConsole(), but AttachConsole() is only available on XP+
>...
>2) Create a .com binary that will spawn the .exe binary.
>...
>
>Are there any alternatives?
>(AttachConsole() like behavior on Win98+ systems would be a big win).
I don't believe so. All of the Microsoft tools that print a usage string
do so in a MessageBox.
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc
VisualStudio has two binaries: devenv.com and devenv.exe. Devenv.com is a Console app. Devenv.exe is a GUI app. This has been illustrated in the msdn mag
article: http://msdn.microsoft.com/msdnmag/issues/04/02/CQA/default.aspx
There is a great blog on this subject from Junfeng Zhang's blog. I believe you may have interest in it. Here is the link:
http://blogs.msdn.com/junfeng/archive/2004/02/06/68531.aspx
Best regards,
Rhett Gong [MSFT]
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
Pieter
"Rhett Gong [MSFT]" <v-ra...@online.microsoft.com> wrote in message
news:E0%23Dx3XD...@cpmsftngxa06.phx.gbl...