Known Issues with DOSBox?
Known Issues with DOSBox?
Hi all,
Does anyone know of any issues with DOSBox when running DOS complied FreeBASIC applications?
I am getting a black screen and nothing else with my program :(
The program runs if I compile it for Windows
Does anyone know of any issues with DOSBox when running DOS complied FreeBASIC applications?
I am getting a black screen and nothing else with my program :(
The program runs if I compile it for Windows
-
- Posts: 2958
- Joined: Jun 02, 2015 16:24
Re: Known Issues with DOSBox?
Hi,
I've used DosBox some years ago. There was a config file to edit and test befor anything could be displayed. So if it hadn't changed I'm not sure you will be able to run something before tuning your config properly. If you use virtualbox, I think you could plug a DOS system in?
It's what I tried to do then, but weren't able to find the Dos 6.22, and gave up.
I've used DosBox some years ago. There was a config file to edit and test befor anything could be displayed. So if it hadn't changed I'm not sure you will be able to run something before tuning your config properly. If you use virtualbox, I think you could plug a DOS system in?
It's what I tried to do then, but weren't able to find the Dos 6.22, and gave up.
Re: Known Issues with DOSBox?
I just fired up fbc 1.01 in DosBox and compiled a one-line hello world program and it ran fine. Haven't tried doing anything with graphics though.
Re: Known Issues with DOSBox?
DosBox emulates a 16-bit system, no ? FBC is 32 or 64 bit.
Re: Known Issues with DOSBox?
FBC generates 32-bit executables for DOS (using a "DOS extender"), but that's no problem for DosBox - if it wouldn't support that lots of old DOS games wouldn't work either because many used DOS extenders like DOS4GW.jdebord wrote:DosBox emulates a 16-bit system, no ? FBC is 32 or 64 bit.
Re: Known Issues with DOSBox?
yes the application I am designing is a graphical app.caseih wrote:I just fired up fbc 1.01 in DosBox and compiled a one-line hello world program and it ran fine. Haven't tried doing anything with graphics though.
My plan text apps work fine in DOSBox
Re: Known Issues with DOSBox?
screen 12 seems to work fine in DOSBox.
Re: Known Issues with DOSBox?
I am usingcaseih wrote:screen 12 seems to work fine in DOSBox.
Code: Select all
ScreenControl( fb.SET_DRIVER_NAME, "GDI" )
ScreenRes 800,600,32
BackGround_Loading = ImageCreate(800,600)
BLoad ExePath & FileSeperator & "images" & FileSeperator & "bg_1.bmp", BackGround_Loading 'Loads the Background
ScreenLock
Cls
Put (0,0), BackGround_Loading, PSet
ScreenUnLock
-
- Posts: 2958
- Joined: Jun 02, 2015 16:24
Re: Known Issues with DOSBox?
Hi Gablea, I 'm not the most competent but I propose you do the tests above. It should draw a blank screen. Every thing is 8 bits and no BLOAD done to avoid difficulties there.Gablea wrote:Code: Select all
ScreenControl( fb.SET_DRIVER_NAME, "GDI" ) ScreenRes 800,600, 8 '<----- just for test BackGround_Loading = ImageCreate(800,600, 15, 8) '<-------init as blank screen 8 bits depth 'BLoad ExePath & FileSeperator & "images" & FileSeperator & "bg_1.bmp", BackGround_Loading Don't use for test ScreenLock Cls Put (0,0), BackGround_Loading, PSet ScreenUnLock
Re: Known Issues with DOSBox?
"gdI" is for dos programs running under Windows. Dosbox doesn't emulate windows, it is only dos.
Re: Known Issues with DOSBox?
ok so under Normal DOS what do I use to set the screen?
-
- Posts: 2958
- Joined: Jun 02, 2015 16:24
Re: Known Issues with DOSBox?
Maybe good old vga, hercules, svga, and so on? Why don't you open the config file that should contain every emulated material, like soundblaster and so on? Sorry, it's a long time I've not been on Dosbox but I quite remember you can have a lot of information from this file.Gablea wrote:ok so under Normal DOS what do I use to set the screen?
-
- Posts: 252
- Joined: Mar 12, 2006 16:25
Re: Known Issues with DOSBox?
I compiled alllegro4 and cgui under dosbox and tested the cgui example with no problems. With other fb examples I had some weired problems. After setting DosBox Option from "cputype=auto" to "cputype=pentium_slow" there are no problems running several examples: flame.bas, tui.bas qbsprite.bas ....
EDIT:
Allegro took some hours to compile. CGUI just some minutes. ;-)
EDIT:
Allegro took some hours to compile. CGUI just some minutes. ;-)