Search found 136 matches

by cbruce
Apr 25, 2018 16:46
Forum: General
Topic: TYPEs with nested arrays of TYPEs - size?
Replies: 5
Views: 368

TYPEs with nested arrays of TYPEs - size?

. My first thought would be that the x2 TYPE would be twice as big as the abc TYPE... instead, there are an extra 48 bytes in the x2 array type. And the number of extra bytes grows with the size of the child array. Where is the overhead in the x2 TYPE coming from... array descriptors, padding, combi...
by cbruce
Apr 23, 2018 15:52
Forum: General
Topic: L (l) suffix Bug, not always "Long", WIN-FBC64
Replies: 24
Views: 1654

Re: L (l) suffix Bug, not always "Long", WIN-FBC64

. There are no negative integer literals. This is correct for C/C++. But, do we really have to do, the same *nonsense* in FB? MrSwiss, please do not misinterpret this. I am not making fun of you! Having watched the development of FreeBASIC for 15 years, I have always seen factions who want to change...
by cbruce
Apr 22, 2018 19:03
Forum: General
Topic: L (l) suffix Bug, not always "Long", WIN-FBC64
Replies: 24
Views: 1654

Re: L (l) suffix Bug, not always "Long", WIN-FBC64

MrSwiss, maybe along the line of fxm's response... ========================================================================== ---------- [page] integer literal - cppreference.com http://en.cppreference.com/w/cpp/language/integer_literal ---------- [selection] There are no negative integer literals ....
by cbruce
Apr 22, 2018 18:10
Forum: Beginners
Topic: Faster string copying/building
Replies: 12
Views: 1114

Re: Faster string copying/building

. Sorry jj2007, but if you are concatenating, you are not using what is defined as a string builder. Your program, behind all of that concatenation, is doing allocates/deallocates of every string. For some odd reason, almost every major language vendor out there has implemented a native string build...
by cbruce
Apr 22, 2018 15:54
Forum: Beginners
Topic: Faster string copying/building
Replies: 12
Views: 1114

Re: Faster string copying/building

. jj2007, if all of the strings that you want to concatenate are already available as literals or in variables, then go ahead and get their lengths and allocate a buffer... just as you suggest. But that does not work if you have to concatenate many unknown strings being passed from other routines, r...
by cbruce
Apr 19, 2018 14:36
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.8 November 19, 2020)
Replies: 722
Views: 138321

Re: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)

Paul, here's another one that's been messing with me for a long time: Version 1.5.9 64-bit... Working with multiple files/tabs... have a Find/Find-Replace dialog open... If you don't ... ... ... pause ... ... ... when clicking between file tabs - the tabs end up changing positions - just like you're...
by cbruce
Apr 18, 2018 14:59
Forum: Game Dev
Topic: Gamer PC headset?
Replies: 5
Views: 958

Re: Gamer PC headset?

I've never been able to find a pair of in-ear headphones that would fit me... they are always very uncomfortable. I've seen the "fitted" kind, but don't feel like paying $300+ for those. Over-the-ear are the only ones that I've ever found that I could wear for an extended amount of time - ...
by cbruce
Apr 18, 2018 14:12
Forum: Game Dev
Topic: Gamer PC headset?
Replies: 5
Views: 958

Re: Gamer PC headset?

Hmm... MrSwiss, I get your point, but I don't see a way to move it to General by myself. Maybe coderJeff or somebody can for me. And I actually am looking for opinions. When you get old and tired and half-broke; trying out 10 different headsets, in an attempt to find one you actually can wear and li...
by cbruce
Apr 18, 2018 4:07
Forum: Game Dev
Topic: Gamer PC headset?
Replies: 5
Views: 958

Gamer PC headset?

Getting ready to take up gaming on Windows10 and wondering about the best wireless, over the ear, noise cancelling mic, gamer headset I can buy for $100 to $200?
by cbruce
Apr 18, 2018 3:59
Forum: General
Topic: format(n, "###") - no spaces?
Replies: 2
Views: 292

Re: format(n, "###") - no spaces?

Thanks sancho3... RSET buff_3, STR(i) is simple and works for me.
by cbruce
Apr 16, 2018 23:47
Forum: General
Topic: format(n, "###") - no spaces?
Replies: 2
Views: 292

format(n, "###") - no spaces?

. format(n, "000") fills with zeros as documented and expected: format(3, "000") ==> "003" And the format(n, "###") documention says that it follows the same rules as the "000" format - but... format(3, "###") ==> "3" ==> not the ...
by cbruce
Apr 16, 2018 19:31
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.8 November 19, 2020)
Replies: 722
Views: 138321

Re: WinFBE FreeBASIC Editor for Windows (Updated September 27, 2017)

Hi Paul, A couple of things... Accidentally did a [Quick Run] and after that it continued to launch a CMD and run the program even though I was doing a [Rebuild All] or [Compile] - even after exiting WinFBE and restarting it. I don't remember what it was in the WinFBE.ini file - but when I diff'd it...
by cbruce
Apr 16, 2018 18:23
Forum: General
Topic: format() not recognized as function?
Replies: 2
Views: 252

Re: format() not recognized as function?

Thanks Josep! I never needed to use format() before - and I missed the dependency in the "Usage" section of the documentation.
by cbruce
Apr 16, 2018 18:02
Forum: General
Topic: format() not recognized as function?
Replies: 2
Views: 252

format() not recognized as function?

. FreeBASIC Compiler - Version 1.06.0 (11-29-2017), built for win64 (64bit) Windows 10 Pro 64-bit (latest version) I'm getting an error when compiling code that uses FORMAT()... dim i as Integer = 1 ' Also tried as a Double. dim fmtstr as String fmtstr = format(i, "###") print fmtstr error...
by cbruce
Apr 12, 2018 3:48
Forum: General
Topic: DOUBLE's fractional digits to ULONGINT ?
Replies: 20
Views: 1406

Re: DOUBLE's fractional digits to ULONGINT ?

' FYI coderJeff... SWEET converter code !!! . Everyone take note... I DON'T need an answer any more! [grin] I'm just responding to coderJeff here because he is unclear about what (or why) I was asking in the OP. Note: Most of the verbiage that I used was about "translating" digits between ...

Go to advanced search