• DirectX8::CreateDevice fails when program is started from within the co

    From R.Wieser@21:1/5 to All on Sun Oct 23 10:29:08 2022
    Hello all,

    I'm trying to create a 3D scene using DirectX, but see CreateDevice fail
    when the program is started from within the console (it runs OK when double-clicked in the GUI).

    Currently I've got a hack in place which consists of forcing a switch to GUI mode by creating a self-closing, never actually displayed dialog. I would
    like to replace it with something more elegant.

    I'm aware of a call which will force a console program to GUI mode (needing
    a Std* handle), but as my program is a GUI mode one ...

    So, does anyone here knows of a (preferrably standard) way how to handle it
    ?

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)