Search found 1934 matches
- Jun 24, 2022 10:44
- Forum: General
- Topic: Feature request: strings in UDTs
- Replies: 16
- Views: 454
Re: Feature request: strings in UDTs
By the way, a ZSTRING doesn't have that issue: its length is exactly as declared, inside a type Yes, but the maximum number of useful characters for the user is 'length - 1' (because of the mandatory terminal character). I made some tests: it is actually possible to use all the characters, removing...
- Jun 23, 2022 17:19
- Forum: General
- Topic: Feature request: strings in UDTs
- Replies: 16
- Views: 454
Re: Feature request: strings in UDTs
What is the point of using a FIELD parameter when you can already use ZSTRING? It's literally just one character to add. Maybe in QB mode the strings inside a TYPE should be treated as ZSTRINGS, just to make UDT compatible with QB (in case one is porting a program that was supposed to read a file wi...
- Jun 23, 2022 16:26
- Forum: General
- Topic: Feature request: strings in UDTs
- Replies: 16
- Views: 454
Re: Feature request: strings in UDTs
At this point, I doubt: changing that would break too much existing FreeBasic code.
By the way, a ZSTRING doesn't have that issue: its length is exactly as declared, inside a type
By the way, a ZSTRING doesn't have that issue: its length is exactly as declared, inside a type
- Jun 18, 2022 16:41
- Forum: DOS
- Topic: Some questions about fbc for DOS/FreeDOS.
- Replies: 2
- Views: 133
Re: Some questions about fbc for DOS/FreeDOS.
1) No, I have just tested on DosBox, FreeBasic returns an error message if there is no DPMI extender. By the way, is the file CWSDPMI.EXE either in the FreeBasic directory, or in another directory in the search path, the program written in FreeBasic (and the compiler itself) can invoke it, loading a...
- Jun 18, 2022 16:05
- Forum: DOS
- Topic: ISR + coroutines = Multitasking in DOS
- Replies: 5
- Views: 4192
Re: ISR + coroutines = Multitasking in DOS
Here it is:D.J.Peters wrote: ↑Jun 18, 2022 8:39 @angros47 can you share the ready to use compiled lib for DOS here ?
https://www.mediafire.com/file/0apraqvl ... bco.o/file
- Jun 17, 2022 14:46
- Forum: General
- Topic: Operator Mod not possible for pointers
- Replies: 5
- Views: 227
Re: Operator Mod not possible for pointers
The reason is likely that pointers are supposed to be already aligned, since a pointer can refer to any size. If you need to align them "by hand" you aren't using them in the way they are supposed to be used
- Jun 16, 2022 22:13
- Forum: DOS
- Topic: [solved] FreeDOS CTMOUSE PS2 mouse does not work here :-(
- Replies: 7
- Views: 286
Re: FreeDOS CTMOUSE PS2 mouse does not work here :-(
Being a proprietary software, it is not part of FreeDos
It should be available here: https://winworldpc.com/product/microsoft-mouse/
It should be available here: https://winworldpc.com/product/microsoft-mouse/
- Jun 16, 2022 18:07
- Forum: DOS
- Topic: [solved] FreeDOS CTMOUSE PS2 mouse does not work here :-(
- Replies: 7
- Views: 286
Re: FreeDOS CTMOUSE PS2 mouse does not work here :-(
Have you tried using a different driver? Like the Microsoft drivers for Ms-DOS?
From what you said, it seems that the issue is in CTMOUSE (if with other drivers the mouse works you might have to file a bug report)
From what you said, it seems that the issue is in CTMOUSE (if with other drivers the mouse works you might have to file a bug report)
- Jun 15, 2022 21:40
- Forum: General
- Topic: probabily oldest freebasic bug :P
- Replies: 17
- Views: 561
Re: probabily oldest freebasic bug :P
Again, it is not a bug. It is how FreeBasic is supposed to act in the old QBASIC functions could be invoked only inside expression, so an attempt to write "ShowNum(5)" would have caused an error, it should have been a sub to work In C, on the other hand, it's possible to use a function as ...
- Jun 15, 2022 5:57
- Forum: General
- Topic: probabily oldest freebasic bug :P
- Replies: 17
- Views: 561
Re: probabily oldest freebasic bug :P
The behavior is indeed correct: to achieve the result 5 and 10 you should use: dim i as integer i=ShowNum(5)+ShowNum(10) in fact, in FreeBasic a FUNCTION can also be invoked as if it were a SUB (that is not possible in QBASIC, but is possible in C): also, while in C a command must have its parameter...
- Jun 10, 2022 23:38
- Forum: General
- Topic: Feature request: For i In var1, var2, ... varN
- Replies: 8
- Views: 517
Re: Feature request: For i In var1, var2, ... varN
Speaking of that, I read that the latest version of Freebasic supports some preprocessor directives for templates. How is the current situation, regarding templayes/generic support?
- Jun 05, 2022 17:55
- Forum: Documentation
- Topic: DOS FAQ
- Replies: 8
- Views: 372
Re: DOS FAQ
Import libraries are not needed for DOS DLL's. Actually, under Windows or Linux dynamic linking can happen in two different ways: load-time, or run-time: https://stackoverflow.com/questions/2055840/difference-between-load-time-dynamic-linking-and-run-time-dynamic-linking https://www.tutorialspoint.c...
- Jun 05, 2022 13:00
- Forum: DOS
- Topic: DOS drivers in FreeBASIC
- Replies: 5
- Views: 209
Re: DOS drivers in FreeBASIC
Ok. To create a dynamic library in DOS, you have to use version 1.06 or later of FreeBasic File mydll.bas '' '' mydll -- simple dll test '' '' compile as: fbc -dll mydll.bas '' '' (will create mydll.dxe under DOS) #include once "mydll.bi" '' simple exported function, the full prototype is ...
- Jun 05, 2022 8:25
- Forum: DOS
- Topic: DOS drivers in FreeBASIC
- Replies: 5
- Views: 209
Re: DOS drivers in FreeBASIC
Only if you have the source code of the library.
If all you have is the DLL file, you cannot.
Are you planning to use a library written by you in FreeBasic, or you want to use a standard library provided by the hardware manufacturer?
If all you have is the DLL file, you cannot.
Are you planning to use a library written by you in FreeBasic, or you want to use a standard library provided by the hardware manufacturer?
- Jun 04, 2022 23:20
- Forum: DOS
- Topic: DOS drivers in FreeBASIC
- Replies: 5
- Views: 209
Re: DOS drivers in FreeBASIC
Nice to see you again, Gablea, it has been a while As I explained to you in the past, while technically possible, making a TSR in FreeBasic is not a good idea. It's extremely unstable, documentation about it is lacking, and as far as I know no one ever used it for any practical use (I just ported an...