Search found 3307 matches

by MrSwiss
Feb 14, 2020 16:30
Forum: Linux
Topic: File name issues (bug)??
Replies: 7
Views: 288

Re: File name issues (bug)??

Hi, as long as you've got library issues (libtinfo* e.t.c) you'll not know anything for certain. Reason: you are currently having "undefined behaviour", which can be anything. As a result, you may encouter any number of 'bugs' which are not really there. Therefore, sort out your FBC instal...
by MrSwiss
Feb 13, 2020 21:20
Forum: General
Topic: pointer, core dump error
Replies: 10
Views: 251

Re: pointer, core dump error

Is your OS 32 or 64 bit (FBC 64 won't work on 32 bit OS)?
Are you using FBC 32 or 64?
The required lib's must have the same bitness, as the compiler used!
by MrSwiss
Feb 13, 2020 20:27
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1643

Re: substrings

a$[c,d] Won't work because: a) string index operator [] can only take one argument (index). b) this means, you'll need another construct (given by the language) c) conclusion: you'll need a Function or a Macro ... (in order to use two different indices, at once) Btw: the $ in dialect "FB"...
by MrSwiss
Feb 13, 2020 17:17
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1643

Re: substrings

The point was to have the syntax intrinsically available, short, simple, clean. Not to have to use a function or macro. This must be a really bad joke, because: Declare Function Mid ( ByRef str as Const String, ByVal start as integer, ByVal n as integer ) as String Aka: Function / Sub / Macro - are...
by MrSwiss
Feb 13, 2020 13:46
Forum: General
Topic: Going beyond the bounds of the array + LOOP
Replies: 7
Views: 278

Re: Going beyond the bounds of the array + LOOP

Probably BASIC programmers are waiting for more logical behavior from the usual cycles :) Even to get that, is no rocket science in FBC. Just use (for error checking only) the proper compiler switches: -exx -w pedantic and, it won't run (throws error = program abort). Checks among other things: arr...
by MrSwiss
Feb 12, 2020 18:52
Forum: General
Topic: Going beyond the bounds of the array + LOOP
Replies: 7
Views: 278

Re: Going beyond the bounds of the array + LOOP

Well, you are accessing memory outside of the receiver array: p(0 to 10) ... indices from: 11 to: 20 , which should provoke a program-crash. If no crash, then we simply have "undefined behaviour" , anything is possible! Fix: use LBound(p) to UBound(p) to size the For-Loop (...
by MrSwiss
Feb 11, 2020 20:10
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated February 19, 2020)
Replies: 616
Views: 101094

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated January 14, 2020)

@Imortis, thank you (lol: "done and done" once methinks, does the trick).
by MrSwiss
Feb 11, 2020 19:51
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated February 19, 2020)
Replies: 616
Views: 101094

Re: error at cursor when I compile

@notsgnivilk,
Please note: this is not a discussion topic and therefore, should be posted in:
WinFBE Editor and ... (under Projects).
Alternative placement (if less specific, than to a specific IDE): Beginners

@Imortis,
could you please move it?
by MrSwiss
Feb 11, 2020 17:06
Forum: General
Topic: [solved] problem with operator let ?
Replies: 11
Views: 310

Re: problem with operator let ?

D.J.Peters wrote:But why is operator let not called ?
I can't answer that one.

But I remember, that a overloaded constructor, was the only solution,
when dealing with pointers (using New/Delete, with a UDT).

Assuming:
reference = dereferenced pointer
by MrSwiss
Feb 11, 2020 14:49
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1643

Re: substrings

... if I wanted the substring starting at character c and ending at character d, it would be a$(c:d) rather than mid$(a$,c+1,d-c+1) ... Along those lines from first post: ' SubString_Proc.bas -- (c) 2020-02-10, MrSwiss ' ' compile: -s console ' #Define dblquot(s) ( Chr(34) + (s) + Chr(34) ) ' put a...
by MrSwiss
Feb 07, 2020 15:45
Forum: Windows
Topic: Function name decoration issue
Replies: 13
Views: 464

Re: Function name decoration issue

I would rather be in favor of changing the function name decoration (suffix @N) because in the 2 cases (Byref or Byval), a pointer (to the string descriptor) is always passed by value (for a 32-bit compilation: N should always be equal to 4). I don't agree, because a FB_String is a Type (aka: UDT o...
by MrSwiss
Feb 05, 2020 23:29
Forum: Beginners
Topic: _ldisphelper
Replies: 3
Views: 145

Re: _ldisphelper

The message is probably -ldisphelper (dash not underline). -l (linker message) can't find library "disphelper" (dll or so). Could someone please tell me what to do? How about consulting the documentation, FB-Manual ... whenever you hit a problem, before using the forum. (this question has ...
by MrSwiss
Feb 04, 2020 0:51
Forum: Beginners
Topic: Possible bug?
Replies: 15
Views: 696

Re: Possible bug?

Well, as I see it currently, there are "the bones" of the Sub(routines) but, "the meat" is missing. What that means is, you don't "do" anything within the sub's body (there is nothing). If you want to return something (typically a result) you should consider a Function,...
by MrSwiss
Feb 02, 2020 16:03
Forum: Community Discussion
Topic: Breaking NEWS (affecting all of us)
Replies: 6
Views: 1101

Re: Breaking NEWS (affecting all of us)

Nowadays Threat tests

Read the summary online: Fake Company. Real Threats
Download Article (as PDF): Fake Company. Real Threats
Published: 2020-01-21, by Trend Micro (research)
by MrSwiss
Feb 01, 2020 0:56
Forum: Tips and Tricks
Topic: Tool for testing OpenGL blend modes.
Replies: 4
Views: 447

Re: Tool for testing OpenGL blend modes.

dodicat wrote:What happened to your circle(x,y) . . . thing?

@dodicat, that is located in 'Beginners' ...

Go to advanced search