Search found 2885 matches
- Dec 19, 2018 2:18
- Forum: General
- Topic: Variable String in a UDT question (SOLVED)
- Replies: 5
- Views: 150
Re: Variable String in a UDT question
Generally speaking: a FB var-len String, is a Type (in and of itself), similar to: FixLenStr (using the same layout as FB-String) so, the allocated memory for the effective String is outside of your Type, which only contains the Type's header (1 x Ptr + 2 x Integer). 12 bytes = FBC 32 / 24 bytes = F...
- Dec 18, 2018 21:01
- Forum: Tips and Tricks
- Topic: Type FixLenStr (fixed size String Type)
- Replies: 3
- Views: 246
Re: Type FixLenStr (fixed size String Type)
I recommend overloading at least the Cast/String ... Added: Let & Cast operators ... GetPsz() function (for calling C proc's.) The whole type in a .bi file, "FixLenStr.bi": ' FixLenStr.bi -- 2018-12-20, MrSwiss (operators Cast/Let & GetPsz() added) ' ------------------------------...
- Dec 17, 2018 14:24
- Forum: Beginners
- Topic: how to copy files to usb-drive in certain order?
- Replies: 9
- Views: 235
Re: how to copy files to usb-drive in certain order?
srvaldez,
in that case you'll have to program your own "custom copy" routine, that:
in that case you'll have to program your own "custom copy" routine, that:
- 1) reads all titles (string array)
2) sorts array (to your preference)
3) copies (one by one) to the target ...
- Dec 17, 2018 14:12
- Forum: Beginners
- Topic: how to copy files to usb-drive in certain order?
- Replies: 9
- Views: 235
Re: how to copy files to usb-drive in certain order?
srvaldez,
I don't clearly understand the problem:
I don't clearly understand the problem:
- Is it related to: "last modified" date/time stamp (aka: programming)?
Is it related to: configuration of File Explorer?
- Dec 17, 2018 13:51
- Forum: Tips and Tricks
- Topic: Type FixLenStr (fixed size String Type)
- Replies: 3
- Views: 246
Type FixLenStr (fixed size String Type)
Hi all, after reading some recent posts, as well as seeing some ideas/attemps, I've decided to do it, "straight and narrow". Which means to say: use var-len String, as a prototype ... The Type can be used in the conventional way: with Dim -- or -- with the use of Pointers (New / Delete): '...
- Dec 15, 2018 17:46
- Forum: Beginners
- Topic: Can we have __FB_WIN32__ and __FB_64BIT__ at the same time? [solved]
- Replies: 14
- Views: 557
Re: Can we have __FB_WIN32__ and __FB_64BIT__ at the same time? [solved]
No need to research: WinRT (it's a different "kettle of fish"!)
I've written: Win_NT (new technology), as opposed to DOS based Windows systems.
(Win3.n, Win95, Win98, Win98SE, Millenium Edition)
I've written: Win_NT (new technology), as opposed to DOS based Windows systems.
(Win3.n, Win95, Win98, Win98SE, Millenium Edition)
- Dec 15, 2018 17:06
- Forum: Beginners
- Topic: Can we have __FB_WIN32__ and __FB_64BIT__ at the same time? [solved]
- Replies: 14
- Views: 557
Re: Can we have __FB_WIN32__ and __FB_64BIT__ at the same time? [solved]
Sorry, to diagree, but __FB_WIN32__ means simply: OS = Windows (32 or 64), like: __FB_LINUX__ means: Linux (not ...BSD nor other UNIX) AFAIR, WIN32 was taken from: Win_NT (original: 32 bit OS, later 64 bit, too) ( Absolutely no connection, to Win-API, IMO! ) should read: "__FB_WIN32__ defined, ...
- Dec 14, 2018 17:12
- Forum: Tips and Tricks
- Topic: Insert/Replace String procedures
- Replies: 38
- Views: 1075
Re: Insert/Replace String procedures
marpon, you can challenge anything, except: "words playing". (I don't play that game.) 1) when it is litle string and few elements to replace you can use every thing, its not important I tend to disagree, if it is called plenty of times, in a application. (A penny saved is a penny got. -->...
- Dec 14, 2018 14:26
- Forum: Tips and Tricks
- Topic: Insert/Replace String procedures
- Replies: 38
- Views: 1075
Re: Insert/Replace String procedures
marpon, I've also redone return to: ByRef ... (+ corrected typo) your speed gain with long strings is negligible (now), but with shorter strings, my version is a lot faster than yours. In a balanced resume: I'd prefer my adapted version (for general purpose). latest version: Function replaceFB( _ By...
- Dec 13, 2018 23:47
- Forum: Tips and Tricks
- Topic: Insert/Replace String procedures
- Replies: 38
- Views: 1075
Re: Insert/Replace String procedures
@marpon, quite fast. Hope you don't mind my redoing certain details: ByRef As String (3 times) with ByVal As ZString Ptr , which safes internal conversions with: StrPtr() and instead of Do While ... Loop just simple While ... Wend and only unsigned integers (instead of signed) Result: shaves...
- Dec 13, 2018 14:14
- Forum: Hardware Interfaces / Communication
- Topic: DIY hardware interface for simple data collection and robot control?
- Replies: 54
- Views: 4238
Re: DIY hardware interface for simple data collection and robot control?
h4tt3n wrote:I'll keep you updated, Cheers Mike
Well, how far is your current progress? Just curious ...
- Dec 13, 2018 12:49
- Forum: Linux
- Topic: Can not find SDL, or any graphic libraries, when attempting to compile?
- Replies: 9
- Views: 349
Re: Can not find SDL, or any graphic libraries, when attempting to compile?
Hi f0rgotten, welcome to the forum. Please, consult the Manual first, for often asked questions, before posting. The error that I am getting is ld: cannot find -lSDL Should be self explaining : The Linker (ld) can't find the SDL library (.so in 'ix OS's/.dll in WIN). Refer to FB-Manual: "includ...
- Dec 11, 2018 20:21
- Forum: Tips and Tricks
- Topic: Fast Reverse String?
- Replies: 89
- Views: 1489
Re: Fast Reverse String?
If one compares compiler versions, in the "very same OS",
is not a concern.srvaldez wrote:I am not sure that it's the FBC version but the OS, more often than not Windows is slower.
- Dec 11, 2018 20:02
- Forum: Tips and Tricks
- Topic: Fast Reverse String?
- Replies: 89
- Views: 1489
Re: Fast Reverse String?
D.J.Peters wrote:Looks like the newest fbc build on Windows (I'm using) is slower than a old version on Linux ?!?
Yes, even in WIN64 only: 1.05.0 is faster than 1.06.0 and, in 1.05.0 slowest is always: Munair.
This changes in: 1.06.0, too ... ???
- Dec 11, 2018 17:16
- Forum: Tips and Tricks
- Topic: Fast Reverse String?
- Replies: 89
- Views: 1489
Re: Fast Reverse String?
leopardpm wrote:I understood that the FB 'SWAP' command is very inefficient
Well, currently, I wouldn't sign that ... (especially the: "very" bit).
There may be faster ways, but those are usually also, more complex to code, too.