|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++.windows.32-bits - Context-aware Win32 GUI exes
This is a possibly dumb question, but does anyone know of a technique whereby one can determine whether an executable is launched from the command line or not. The desired behaviour I am after is outputting the help information to stdout if launched on the command-line, otherwise popping a dialog. Let me tell you that I've tried querying the console characteristics but that proved to be not wholly reliable, the same goes for getting the standard handles (via GetStdHandle()). Matthew Oct 18 2002
Try looking at argv[0], and see if there's a difference. "Matthew Wilson" <dmd synesis.com.au> wrote in message news:aoptfv$2v26$1 digitaldaemon.com...This is a possibly dumb question, but does anyone know of a technique whereby one can determine whether an executable is launched from the Oct 19 2002
|