Search found 1447 matches

by St_W
Nov 27, 2018 11:50
Forum: Community Discussion
Topic: Nominations for Forum Moderators
Replies: 70
Views: 6434

Re: Nominations for Forum Moderators

Although I'm unsure whether they'd all accept, I'd nominate (or second the nomination for) fxm, PaulSquires, Imortis.
(is there a limit on nominations-per-person?)
by St_W
Nov 26, 2018 16:37
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 14762

Re: Dim Byref syntax

In general you only need to delete objects you allocated on the Heap, with "new", "allocate", malloc(), etc.
Objects stored on the stack or in a data segment of the application do not need to be deleted.
by St_W
Nov 26, 2018 14:43
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 14762

Re: Dim Byref syntax

Thanks for the example fxm, I was wrong evidently. I had a look at the C code generated by the C emitter of FB for both return *cptr(tt ptr, 0) (with a byref return value) and dim byref as tt t = *cptr(tt ptr, 0) . The generated code assigns the null pointer to the reference and does...
by St_W
Nov 26, 2018 13:59
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 14762

Re: Dim Byref syntax

I don't think that you can do that without using pointers explicitly. I would even have expected the application to crash when you " return *cptr(tt ptr, 0) ", because you're returning an object. And this object is constructed from the dereferenced null reference, which should call...
by St_W
Nov 24, 2018 21:35
Forum: General
Topic: Using a DLL
Replies: 8
Views: 524

Re: Using a DLL

Thanks a lot for explaining this behaviour. I would drop the "obviously", though - the linker might as well use the file name of the DLL, or at least check if there is a conflict between file and library name, and issue a warning. Sorry, used the wrong word there, I meant "apparently...
by St_W
Nov 24, 2018 20:39
Forum: Community Discussion
Topic: New website
Replies: 45
Views: 6514

Re: New website

Thanks to whoever (finally) fixed the CSS to make tt tags work again!
by St_W
Nov 24, 2018 20:35
Forum: General
Topic: Using a DLL
Replies: 8
Views: 524

Re: Using a DLL

You are not providing an import library for your dll file, thus FreeBasic (or the GNU Linker "ld", to be more precise) creates a default one for you. And this obviously respects the library name as defined in the DLLs export directory (using dumpbin ConsoleInput.dll /exports ): Dump of fil...
by St_W
Nov 21, 2018 15:53
Forum: General
Topic: Coders
Replies: 52
Views: 1866

Re: Coders

Initializers in FB are limited, for example the issue with your first example is that you can't initialize variable-length strings in UDTs with an initializer. Excluding members from initialization isn't possible - at least I don't know a way to do so either. IMHO your proposed syntax is neither cle...
by St_W
Nov 21, 2018 14:30
Forum: General
Topic: Coders
Replies: 52
Views: 1866

Re: Coders

Munair wrote:BTW, it would be nice if FB would support syntax like [...]

Actually it does:

Code: Select all

type Typed64Bits
    value as string * 8
end type

dim s as Typed64Bits = ("testtest")

print s.value

see also https://freebasic.net/wiki/wikka.php?wakka=KeyPgDim ("initializers")
by St_W
Nov 21, 2018 8:18
Forum: Hardware Interfaces / Communication
Topic: Raspberry Pi and FreeBASIC
Replies: 18
Views: 4923

Re: Raspberry Pi and FreeBASIC

You can also install the latest Git build using these commands on RPi 2, 3 and higher: wget http://users.freebasic-portal.de/stw/builds/linux-armv7a-hf-debian/freebasic.deb wget http://users.freebasic-portal.de/stw/builds/freebasic-headers.deb sudo dpkg -i freebasic.deb sudo dpkg -i freebasic-header...
by St_W
Nov 21, 2018 1:53
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 429
Views: 64722

Re: Where can I get a Recent-Git-Build of FreeBASIC?

I've added a few build jobs to create & upload Debian package (.deb) files for the Linux builds. Those should simplify a default installation of freebasic on a Debian-based system (like Ubuntu or Raspbian). Only the latest version is available as of now and the files are overwritten when a new v...
by St_W
Nov 19, 2018 14:33
Forum: Linux
Topic: Best Distro for FB
Replies: 38
Views: 5734

Re: Best Distro for FB

Debian is focused on stability and security and thus often the latest version of an application is not available in its package repositories. If you want that use another distro, like Ubuntu, which is based on Debian but also provides recent application versions in its repositories (at the cost of s...
by St_W
Nov 16, 2018 13:37
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 29
Views: 1987

Re: Have anyone an complete updated Freebasic?

I actually never used MINGW but it is also for Unix-like systems, apparently. I can install it directly from the software repository here on Manjaro Linux. It allows to cross compile applications on Linux for Windows. So you can create Windows applications on your Linux system. But you can't run th...
by St_W
Nov 16, 2018 8:40
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 29
Views: 1987

Re: Have anyone an complete updated Freebasic?

http://users.freebasic-portal.de/stw/builds/ Note that these are really just the fbc builds containing only what's necessary to build fbc itself. As dodicat already suggested, if you're looking for a complete package I'd recommend to go with WinFBE suite, which includes 32-bit and 64-bit fbc from a...
by St_W
Nov 15, 2018 15:00
Forum: Projects
Topic: FBIde 0.4.6 r3 Avilable now
Replies: 83
Views: 29140

Re: FBIde 0.4.6 r3 Avilable now

dodicat wrote:I have the C source code for fbide

You have? I thought that it was lost (at least a significant part of it, only very old versions survived) and that's why development on fbide stopped back then?

Go to advanced search