[Resolved] Directx 9 is installed but blackscreen

Just starting out? Need help? Post your questions and find answers here.
Atlante
User
User
Posts: 22
Joined: Mon Jun 27, 2011 1:39 pm
Location: FRANCE

[Resolved] Directx 9 is installed but blackscreen

Post by Atlante »

Hello,

I formatted my pc yesterday and now i have problems with PB5.00
Windows 7 PRO x64 and i use dual screen

Directx 9 is installed but when i start sprite3d exemple : i have black screen, i see in debugger the program is runing but nothing is displayed.

With directx 7 or openGl it works. I don't understand the problem.

So i wrote directly to the compiler options, and i gave this error now : Le sous-système suivant est introuvable : directx 9
The sub-system isn't found: directx 9

could you help me ?

regards,

Morgan

edit : if i create folder directx9 in C:\Program Files (x86)\PureBasic\SubSystems\ not error but allways blackscreen
Last edited by Atlante on Mon Dec 31, 2012 6:21 pm, edited 1 time in total.
Devops Engineer
PB French Moderator
http://www.purebasic.fr/french/
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Directx 9 is installed but blackscreen

Post by ts-soft »

DirectX9 is the Default! Remove the SubSystem in the CompilerOptions!

The compiler uses the normal libs for DirectX9 and there is no SubSystem-Directory DirectX9 with extra libs!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Atlante
User
User
Posts: 22
Joined: Mon Jun 27, 2011 1:39 pm
Location: FRANCE

Re: Directx 9 is installed but blackscreen

Post by Atlante »

Yes, i know. But i had black screen so i tried other solutions.
Nothing works, I still have a black screen and no error message.
regards
Devops Engineer
PB French Moderator
http://www.purebasic.fr/french/
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Directx 9 is installed but blackscreen

Post by ts-soft »

Okay, see here: http://www.purebasic.fr/english/viewtop ... 58#p377958

Code: Select all

 CallFunction(OpenLibrary(#PB_Any,"dwmapi.dll"),"DwmEnableComposition",0) 
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Atlante
User
User
Posts: 22
Joined: Mon Jun 27, 2011 1:39 pm
Location: FRANCE

Re: Directx 9 is installed but blackscreen

Post by Atlante »

I try tonight because i'm at work ;)

Many thanks for your help
Devops Engineer
PB French Moderator
http://www.purebasic.fr/french/
Atlante
User
User
Posts: 22
Joined: Mon Jun 27, 2011 1:39 pm
Location: FRANCE

Re: Directx 9 is installed but blackscreen

Post by Atlante »

it works ;)

thanks
Devops Engineer
PB French Moderator
http://www.purebasic.fr/french/
Post Reply