Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Most legends have their basis in facts. -- Kirk, "And The Children Shall Lead", stardate 5029.5


devel / comp.os.ms-windows.programmer.win32 / DirectX8::CreateDevice fails when program is started from within the console.

SubjectAuthor
o DirectX8::CreateDevice fails when program is started from within the console.R.Wieser

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

<tj2ts3$1shd$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1126&group=comp.os.ms-windows.programmer.win32#1126

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!XakcSTEO51npqVb7OVl71w.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: DirectX8::CreateDevice fails when program is started from within the console.
Date: Sun, 23 Oct 2022 10:29:08 +0200
Organization: Aioe.org NNTP Server
Lines: 20
Message-ID: <tj2ts3$1shd$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="61997"; posting-host="XakcSTEO51npqVb7OVl71w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Notice: Filtered by postfilter v. 0.9.2
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
 by: R.Wieser - Sun, 23 Oct 2022 08:29 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor