Problem with Purebasic v6.00

Just starting out? Need help? Post your questions and find answers here.
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

I tested by putting DirectX11 in compiler options subsystem.
I set the resolution to 800x600 and now the display is correct.

I have Windows 11 professional, Purebasic v6.00 64 bit.
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

There is always an error, now the sprite of the ball does not display any more whatever the resolution chosen!!!

Frankly, it's hopeless v6.00, I'm uninstalling it!!!
Micoute
User
User
Posts: 24
Joined: Sat Jun 22, 2013 4:06 pm
Location: La Mézière FRANCE

Re: Problem with Purebasic v6.00

Post by Micoute »

it works very well with DirectX 9
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

I am with Windows 11 and we can only have DirectX11 and in this case, the display is incorrect in 800x600.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Problem with Purebasic v6.00

Post by Paul »

jak64 wrote: Tue Aug 16, 2022 9:48 pm I am with Windows 11 and we can only have DirectX11 and in this case, the display is incorrect in 800x600.
Are you saying your admin does not allow you to download and install DirectX9 runtimes?

That is to bad. I have always had good results with PB using DirectX9. With PB using DirectX11 I have had Sprites not displaying correctly (even with latest & greatest hardware) and with OpenGL I have always had issues, especially when it comes to scaling.
Image Image
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

Hello Paul,
It's my personal computer in Windows 11 and I don't know if I can install DirectX9 when there is already DirectX11.

If I can, how to install DirectX9?

Thanks
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Problem with Purebasic v6.00

Post by Paul »

jak64 wrote: Tue Aug 16, 2022 10:20 pm Hello Paul,
It's my personal computer in Windows 11 and I don't know if I can install DirectX9 when there is already DirectX11.
Yes you can have both installed at the same time. Lots of games that still use DirectX9 will auto install it.
You can Google "DirectX9 download" and get a link to download directly from Microsoft website.
Image Image
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

1) I downloaded DirectX from the Microsoft site (http://www.microsoft.com/en-us/download ... px?id=8109)
2) I unzipped it in a folder
3) I ran DXSETUP.exe
4) I restarted my computer
5) I put "DirectX9" in subsystem in Purabasic Compiler Options

I have the message DirectX9 subsystem not found!!!
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

I programmed several games on Windows 11 and DirectX11 with Purebasic v5.73 without any issues.

With Purebasic v6.00, I have display problems with its games, I conclude that it is not Directx which is in question but the V6.00 of Purebasic.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: Problem with Purebasic v6.00

Post by Paul »

jak64 wrote: Tue Aug 16, 2022 10:55 pm I have the message DirectX9 subsystem not found!!!
When compiling, are you using the PureBasic 6.00 IDE and compiling with v6.00 compiler or do you have v5.73 compiler set?
If you have 5.73 set then DirectX9 is used by default so specifying DirectX9 will give an error.
Just like if you have v6.00 compiler set you can't specify OpenGL since OpenGL is used by default in v6.00

v6.00 allows DirectX9 and DirectX11 to be specified. Leaving blank uses OpenGL by default. Specifying OpenGL will give "subsystem not found"
v5.73 or lower allows DirectX11 or OpenGL to be specified. Leaving blank uses DirectX9 by default. Specifying DirectX9 will give "subsystem not found"
Image Image
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

OK, I tested with V5.73!

I uninstalled v5.73 and installed v6.00 and putting DirectX9 in compiler options subsystem is OK.

Should have known!!!

Thanks to you

To summarize :
V5.73 put nothing in subsystem
V6.00 put DirectX9 in subsystem

If we use DirectX, of course.
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

I spoke too soon...

With v6.00, some of my programs no longer work correctly (whether I put DirectX9, DirectX11 or nothing) while they worked perfectly with v5.73!!!

I'm fed up because I spent a lot of time trying everything and I'm uninstalling v6.00 because, for me, it's v6.00 that contains bugs!
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Problem with Purebasic v6.00

Post by skywalk »

What are your compiler options?
ASM, C backend, +optimizer?, threaded, etc.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Problem with Purebasic v6.00

Post by jak64 »

Hello,
I have no compilation option, I just check these 2 boxes:

Enable modern theme suppport (for Windows XP and above)
Enable DPI aware executable (Windows)

And I tested by putting in the zone Library Subsystem
Nothing
DirectX9
DirectX11
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Problem with Purebasic v6.00

Post by Marc56us »

1. You can perfectly well have several versions of PB at the same time, just specify different directories during the installation. No need to uninstall.

2. Update your graphics card drivers, this will update DirectX (launch dxdiag after and see if errors)

3. If you have a graphics card based on NVidia chipset, use the stable driver: SD (Studio Driver) rather than GRD (Game Ready Driver).

4. If you don't check any option on compiler option, then you still use ASM. Try C backend too (pbcompilerc.exe)
(C:\Program Files\PureBasic\Compilers\pbcompilerc.exe in a standard installation)

5. A few thousand of us have been using version 6 successfully for several months.

6. In my case, in V6 x64 ASM without DirectX declaration (so the default one (DX12)
screen 125% DPI checked
It works. full text
If I put Directx11 or 12: Error
If DirectX 9, or nothing: OK
Last edited by Marc56us on Wed Aug 17, 2022 9:29 am, edited 1 time in total.
Post Reply