Search found 7596 matches

by dodicat
Nov 25, 2022 11:58
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)
Replies: 929
Views: 260413

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)

Old age jaskin? FB can use the gsl maths library, among others. https://www.freebasic.net/forum/viewtopic.php?p=294671#p294671 I know that analysis in pure maths can easily be shelved away and forgotten about (unless you are still actively involved), but applied maths is always a handy tool. True en...
by dodicat
Nov 24, 2022 23:45
Forum: Community Discussion
Topic: Christmas comes early for dodicat
Replies: 2
Views: 137

Re: Christmas comes early for dodicat

Hi deltarho. I have just checked my TalkTalk inbox, and I don't see a message in these last few weeks. But maybe my wife has binned it, she has been having a bit of a clear up, and wouldn't recognize the name. I note that the email trash folder is now empty. I was contemplating getting one of these ...
by dodicat
Nov 24, 2022 14:22
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)
Replies: 929
Views: 260413

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)

I am beginning to use WinFBE more frequently these days.
My fbide sometimes freezes if I use search in the file open dialog. Could be my windows of course.
I am sure PaulSquires will fix these things, he fixed the quick run thing very quickly.
by dodicat
Nov 24, 2022 13:37
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)
Replies: 929
Views: 260413

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)

Paste a file to new file
save as something.bas
press compile, the save dialog comes up, but you already have it saved (something.bas), so cancel.
If there are say 5 other files up in the ide, then the dialog comes up five times as you cancel five times.
The quick run seems OK now though.
by dodicat
Nov 24, 2022 10:28
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.3 November 24, 2022)
Replies: 929
Views: 260413

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V3.0.2 November 23, 2022)

I downloaded the latest build.
For quick run it wants to save the file first.
Then cancel runs the file.
Previously it was automatic and afterwards files deleted, although, and I asked about it a dozen or so posts ago, I was left with a pile of TMPxxxx.bat files.
I never got an answer.
by dodicat
Nov 23, 2022 22:49
Forum: Beginners
Topic: string in c++?
Replies: 7
Views: 190

Re: string in c++?

Just a short way of saying
static as string s
s=hello()
using a colon to separate statements is allowed.

you cannot do
static as string s=hello()
"Var-len strings cannot be initialized " would be the error.
by dodicat
Nov 23, 2022 21:00
Forum: Beginners
Topic: string in c++?
Replies: 7
Views: 190

Re: string in c++?

You might have to shadow (wrap) all the functions returning string. #cmdline "-dll" extern "c++" function hello() as string dim as string test="hello world!" return test end function function helloS() as zstring ptr export static as string s:s=hello() return @s[0] end f...
by dodicat
Nov 23, 2022 19:13
Forum: Beginners
Topic: string in c++?
Replies: 7
Views: 190

Re: string in c++?

hello.bas (compile -dll) #cmdline "-dll" extern "c++" function hello() as zstring ptr export dim text as zstring ptr = strptr("hello world!") return text end function end extern test.cpp //test.cpp #include<iostream> extern char * hello() ; int main() { std::cout<<hello...
by dodicat
Nov 23, 2022 18:25
Forum: General
Topic: Deleteing pointer of the extended class
Replies: 10
Views: 325

Re: Deleteing pointer of the extended class

Thanks SARG. A little experiment, send Run time Type information (rtti) in a static lib file, to be used in another program. shapes.bas ' shapes.bas #cmdline "-lib" Type Shape Extends Object Declare Abstract Sub DrawShape() Declare abstract Sub Moveshape(As Long,As Long,As Long,Byref As Lo...
by dodicat
Nov 20, 2022 17:47
Forum: General
Topic: Deleteing pointer of the extended class
Replies: 10
Views: 325

Re: Deleteing pointer of the extended class

Thanks.
I am far too lazy to compile the compiler these days.
I use SARG's binary fbc64_latest.exe
by dodicat
Nov 20, 2022 17:26
Forum: General
Topic: Deleteing pointer of the extended class
Replies: 10
Views: 325

Re: Deleteing pointer of the extended class

I see what you mean, I tested on the official version.
I don't have the changelog.txt for 1.10.0
by dodicat
Nov 20, 2022 16:16
Forum: General
Topic: Deleteing pointer of the extended class
Replies: 10
Views: 325

Re: Deleteing pointer of the extended class

I don't like these hypothetical situations. Get some juice into it. ' Base class Type Shape Extends Object Declare Abstract Sub DrawShape() End Type Type Point As Single x,y End Type ' First shape Type Rectangle Extends Shape Private: As Long x,y As Long rx,ry As Long angle As Ulong fillcol As Ulong...
by dodicat
Nov 17, 2022 19:38
Forum: General
Topic: Nested Types Comments
Replies: 8
Views: 279

Re: Nested Types Comments

A little tester with a static foo and a foo function, since an actual foo is not allowed inside the nested type bar. type foo as string z type bar as long dummy static as foo f declare function foobar() byref as foo declare constructor declare constructor(as string) declare operator cast() as string...
by dodicat
Nov 17, 2022 12:36
Forum: Beginners
Topic: MULTIKEY , Is the code correct?
Replies: 24
Views: 880

Re: MULTIKEY , Is the code correct?

I only have windows. As well as flushing the keyboard, multikey can also be flushed out of it's torpor when a sleep in introduced. This seems to work for shift+left or right arrow keys, but I admit, it is not coded strictly analytically, more trial and error.(due to the bug) #include "fbgfx.bi&...
by dodicat
Nov 15, 2022 23:36
Forum: General
Topic: Pass by value of "big" parameter(s) ?
Replies: 5
Views: 256

Re: Pass by value of "big" parameter(s) ?

It is a very weak constant though. #cmdline "-w pedantic" Type udt As zstring * 500 z End Type Sub dothis(byref u As Const udt) *Cptr(udt Ptr,@u).z="Goodbye, Press a key to end . . ." End Sub Dim As udt u=("Hello") Print u.z dothis(u) Print u.z Sleep But thanks for look...