Page 1 of 1

[Resolved] Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 8:41 am
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

Re: Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 8:45 am
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!

Re: Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 9:59 am
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

Re: Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 10:04 am
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) 

Re: Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 11:34 am
by Atlante
I try tonight because i'm at work ;)

Many thanks for your help

Re: Directx 9 is installed but blackscreen

Posted: Mon Dec 31, 2012 6:20 pm
by Atlante
it works ;)

thanks