For running the DOS port of FLTK you have to have set environment variable NANOSCR.
Before launhing the program try this DOS command:
SET NANOSCR=800 600 565
(width, height, RGB bits: 5-red, 6-green, 5-blue /16-bit videomode/)
Search found 27 matches
- Aug 13, 2023 17:57
- Forum: DOS
- Topic: FLTK for DOS
- Replies: 17
- Views: 4460
- May 19, 2023 17:46
- Forum: DOS
- Topic: (Basic Question) DIR Not Working
- Replies: 7
- Views: 2701
Re: (Basic Question) DIR Not Working
Maybe helps this?: Dir("C:\prmpt\*.*")
- Mar 14, 2020 21:29
- Forum: DOS
- Topic: Strange errors
- Replies: 11
- Views: 4311
Re: Strange errors
But this command line: "fbc filetocompile.bas" can't work in normal DOS environment!
Because FILETOCOMPILE.BAS has longer name than usual 8+3 DOS file name format. Don't rely on the 3rd party LFN drivers. In some situations they may not work.
Because FILETOCOMPILE.BAS has longer name than usual 8+3 DOS file name format. Don't rely on the 3rd party LFN drivers. In some situations they may not work.
- Mar 14, 2020 11:19
- Forum: DOS
- Topic: Strange errors
- Replies: 11
- Views: 4311
Re: Strange errors
It works in QB 4.5? And what about the calls from C libraries? Do you use in your code some explicite linking with C-library files? (I don't know the proper FB syntax but simething like: "#INCLIB GCC.A" ). Or your code is just "pure" basic code without any attempts to call anythi...
- Mar 08, 2020 8:11
- Forum: DOS
- Topic: Strange errors
- Replies: 11
- Views: 4311
Re: Strange errors
Does work the cross-compilation from Windows compiler to DOS executable? In case you are trying to do a native compilation in DOS system with DOS FB-compiler to DOS executable it is rather some DOS specific problém than a problém in your code. It can be related to LFN (long file names) support. Or t...
- Mar 17, 2019 22:24
- Forum: DOS
- Topic: Difficulties in DOS on real hardware
- Replies: 29
- Views: 21230
Re: Difficulties in DOS on real hardware
Generally, in the DOS protected mode programming one of the most problematic things are any routines using hardware interrupts or hardware callbacks. There are often problems when interrupt handler wants to use memory which is swapped out from memory pool. So your application can be more stable if t...
- Jan 25, 2018 21:10
- Forum: DOS
- Topic: weird crashes on Phenom II X4
- Replies: 4
- Views: 2515
Re: weird crashes on Phenom II X4
Hm, interresting. Does the Phenom II X4 integrate some chipset functionality (like in southbridge/northbridge circuits) just on the chip itself? Because it sound like some kind of A20 gate problem. You should more experiment with various memory setups. By the way - does it occur if you run your samp...
- Feb 13, 2015 15:25
- Forum: DOS
- Topic: Presse a key in same time -> move my mouse. Ctmouse troubles
- Replies: 4
- Views: 3603
Re: Presse a key in same time -> move my mouse. Ctmouse trou
The problem is probably somewhere in USB-PS2 emulation. If I understand correctly you use USB mouse in USB slot and have only CTmouse driver loaded. So you don't use DOS USB driver by Bret Johnson but you rely on BIOS emulation, right? In such cases you might try to turn off "USB input legacy e...
- Aug 12, 2013 13:22
- Forum: DOS
- Topic: Large fonts in text mode
- Replies: 7
- Views: 3971
Re: Large fonts in text mode
You could try my pascal unit Mimoza. It allows many exotic things in DOS text mode; besides other things also changing the size of chars. Firstly try the included compiled example. The pascal source is self-explanatory and contains assembler parts. It is not difficult to translate it into basic. htt...
- Aug 25, 2012 14:42
- Forum: DOS
- Topic: exec/chain/run performance loss
- Replies: 10
- Views: 3370
Re: exec/chain/run performance loss
It could be problem related to disk cache in protected mode. Most disk caching programs can have problems when are in protected mode (which is used by FBC). Before running FBC program you could load alternate DPMI server HDPMI32. Just enter on command line: "HDPMI32 -r". Then run your prog...
- Nov 17, 2011 16:38
- Forum: DOS
- Topic: MIDI in DOS
- Replies: 20
- Views: 7677
Sure!
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
- Nov 08, 2011 15:30
- Forum: DOS
- Topic: MIDI in DOS
- Replies: 20
- Views: 7677
QMIDI in FreeBasic
Yes, it is not hard to port QMIDI into FreeBASIC. Year ago I ported it into Freepascal - the same 32-bit DPMI DOS environment. You only have to encapsulate the interrupt callings into protected mode envelope.
- Jun 09, 2010 20:47
- Forum: DOS
- Topic: FBCompiler .vs. WindowsUpdates...
- Replies: 13
- Views: 5733
- May 26, 2010 19:07
- Forum: DOS
- Topic: FBCompiler .vs. WindowsUpdates...
- Replies: 13
- Views: 5733
But Japheth has written a 64-bit DOS program
http://www.bttr-software.de/forum/board ... 6886#p6887
And what about this sample application and facts in that thread?
And what about this sample application and facts in that thread?
- Aug 16, 2009 6:37
- Forum: DOS
- Topic: Compiler Error - -lgcc missing
- Replies: 2
- Views: 2428
problems with LFN?
I have suspection than problem is in your path. LD utility has problems with long file names. Try to move Freebasic and your projects into domething like C:\FB