Search found 42 matches

by monochromator
Jul 06, 2013 10:31
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1914

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

In all modern file systems directory is just a special type of file. It differs from a conventional file with only special attribute. And it is completely logical that it is called the same way as ordinary files. FreeBASIC shouldn't invent own approaches to file system, and has to follow the princip...
by monochromator
Jul 06, 2013 10:06
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1914

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

fxm tries to explain to you that routes with first slash and without have different value. Routes "dir1\dir2" and "\dir1\di2" are different routes. The first of them is set from current directory, and the second is set from root directory. There is silly thing to designate differ...
by monochromator
Jul 06, 2013 6:52
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1914

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

All file functions of the language have to work in uniform style. As a standard it is reasonable to take the CURDIR$ function. And it returns "C:\", but not "C:", and not only in "FreeBASIC", but also in "QuickBASIC".
by monochromator
Jul 06, 2013 4:54
Forum: DOS
Topic: How do you do a real mode callback for the mouse?
Replies: 5
Views: 1974

Re: How do you do a real mode callback for the mouse?

To lassar: You have absolutely wrong idea of use of real mode callbacks. Actually everything is a little more difficult. There is the example of the workable program below. 'Использование звонковых точек реального режима для получения событий от мыши. '$LANG: "fblite" '$INCLUDE: 'dos\go32....
by monochromator
Jun 24, 2013 7:55
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

I use FreeBASIC 0.25, which was downloaded from github in form of source code
approximately three months before.
At this link (http://tempfile.ru/file/2888375) there are executable files of the both programs. Try
execute it directly without compilation.
by monochromator
Jun 21, 2013 10:51
Forum: General
Topic: Cross-linked lists
Replies: 6
Views: 564

Re: Cross-linked lists

To MOD: Your answer is really on the merits. I didn't know about existence of this opportunity. Thank you very much. Simply I consider that it will be much better if the compiler automatically supports such forward references as it occurs in C/C++ and Turbo Pascal. But problem with sqlite3 example s...
by monochromator
Jun 21, 2013 9:43
Forum: General
Topic: Cross-linked lists
Replies: 6
Views: 564

Cross-linked lists

There is simple example of cross-linked list type sqlite3_file pMethods as sqlite3_io_methods ptr end type type sqlite3_io_methods iVersion as integer xClose as sqlite3_file ptr end type dim a1 as sqlite3_file, a2 as sqlite3_io_methods a1.pMethods = @a2 a2.xClose = @a1 As i understood, FreeBASIC doe...
by monochromator
Jun 21, 2013 9:39
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

For DOS I use CWSDPMI r7.

May you use earlier version of CWSDPMI?

As far as I remember, version 3 is really less stable.

PS. Additionally i tested both programs in FreeDOS 1.1 under VirtualBox. All work excellently.
by monochromator
Jun 19, 2013 15:05
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

Computer is very obscure thing and filled by paradoxes. The cause of exception, which is observed in program in DOSBOX, is statement SLEEP. FreeBASIC "SLEEP" in current condition is incompatible with DOSBOX. Yes, it's hard to believe, but this is a fact. Try this small example and you rece...
by monochromator
Jun 18, 2013 21:17
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

This is small example of working with VESA in FreeBASIC for DOS. It contains analogs of ScreenList, ScreenRes, Pset, Cls and Line FreeBASIC subroutines. During work program enumerates all accessible graphic modes with 8-bit color depth, sets mode with resolution 640x480x8 and draws some graphical pr...
by monochromator
Jun 17, 2013 17:37
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

Then you will not need DOSMEMGET/DOSMEMPUT. 1. Set required video mode through int86. 2. Get physical address and size of frame buffer (int86). 3. Map it to linear address space (__dpmi_physical_address_mapping) 4. Allocate descriptor (__dpmi_allocate_ldt_descriptors) 5. Set it's parameters (base ad...
by monochromator
Jun 17, 2013 17:21
Forum: DOS
Topic: Access vesa modes in freebasic ?
Replies: 14
Views: 3390

Re: Access vesa modes in freebasic ?

FreeBASIC graphic library automatically uses VESA for high resolution or high color modes. For example, If you set screen mode 18 (640x480x8), gfxlib will use VESA interface. If you want use VESA directly, it is possible with functions "int86" or "int86x" (declared in file "...
by monochromator
Jun 16, 2013 17:37
Forum: DOS
Topic: Question about refresh rate in screenres?
Replies: 3
Views: 1011

Re: Question about refresh rate in screenres?

In the current state of the graphics library for DOS now "refresh_rate" not affect anything and is assigned by default (50-70 Hz), depending on the used graphics mode. In general, this option should affect the refresh rate of the monitor and the refresh rate of video memory by graphics lib...
by monochromator
Jun 15, 2013 10:35
Forum: DOS
Topic: Multithreading in DOS
Replies: 16
Views: 5641

Re: Multithreading in DOS

To angros47: The cause is not in an extender. The matter is that the libraries Pthread and Watt32 used for the organization of a multithreading, are compiled for the processor i686 and contain some instructions specific to Pentium II+ processors. DOSBOX isn't able to execute them therefore there is ...
by monochromator
Jun 13, 2013 13:40
Forum: DOS
Topic: Using TCP/IP - DOS networking with NDIS drivers
Replies: 8
Views: 2022

Re: Using TCP/IP - DOS networking with NDIS drivers

First of all, you must convert NDIS interface into "packet driver interface". This is done via a special program bridge. This is one of them, in my opinion, the best - DIS_PKT9: http://www.filewatcher.com/b/ftp/ftp.kaluga.ru/TcpIp/PktDrv-0.html. This is 9 version, it is rather old. In my e...

Go to advanced search