Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectX8::CreateDevice fails when program is started from within the console.

3 views
Skip to first unread message

R.Wieser

unread,
Oct 23, 2022, 4:26:48 AM10/23/22
to
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


0 new messages