Search found 1412 matches

by St_W
Nov 05, 2018 11:50
Forum: Community Discussion
Topic: Donations
Replies: 4
Views: 224

Re: Donations

Munair wrote:[...], which begs the question, who pays for the server/website?
freebasic.net is hosted by Plasma (aka Jon Petrosky). I don't know whether he takes any donations, though.

As others already pointed out contributing in terms of code, documentation, etc. is probably most beneficial for FreeBasic.
by St_W
Nov 05, 2018 1:09
Forum: General
Topic: Illegal non-static member access
Replies: 16
Views: 271

Re: Illegal non-static member access

@dodicat: but the TForm1 "x" inside TForm1.GetMenuItem1Click() is a different one than "Form1" defined outside. As far as I understand the OP the goal is to make the object instance of the defining UDT available in the callback.
by St_W
Nov 04, 2018 22:49
Forum: General
Topic: Illegal non-static member access
Replies: 16
Views: 271

Re: Illegal non-static member access

The problem with your code in the first post is that a member method always takes a (hidden) this pointer, which is a pointer to the object instance. For example, "sub TForm1.MenuItem1Click()" is actually "sub MenuItem1Click(thisPtr as TForm1 Ptr)". That should explain why that m...
by St_W
Nov 04, 2018 22:25
Forum: General
Topic: SUB pointer and optional single ANY PTR parameter
Replies: 9
Views: 166

Re: Procedure pointer and optional ANY PTR parameter

The bug seems to be in line 1 (type t, instead of Dim As ...) Those are different things. What fxm is using is called a type alias (see https://freebasic.net/wiki/wikka.php?wakka=ProPgTypeAliases ; you may also know "typedef" from C). @dodicat: didn't know that such syntax is even legal/p...
by St_W
Nov 04, 2018 20:47
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 2117

Re: Resignation

[...] the admins take the reports seriously. There are a few members that are diligent in pointing out the problem posts. Like this topic even, which at the moment could go either way, constructive learning, or endless rant. Is it too much to ask that members conduct themselves civilly, without a g...
by St_W
Nov 04, 2018 12:11
Forum: Community Discussion
Topic: Resignation
Replies: 74
Views: 2117

Re: Resignation

I know that this is way easier to tell, than actually doing it, but mind that it's only a minority of users. If you look on the positive side, the majority, including myself, value your contributions to this forums and FreeBasic. Your implementations in the area of cryptography often require accordi...
by St_W
Nov 02, 2018 18:19
Forum: Windows
Topic: gcc 5.2 vs gcc 8.1
Replies: 64
Views: 2535

Re: gcc 5.2 vs gcc 8.1

would you please list the files that I would have to replace? The files are listed on the following wiki page: https://freebasic.net/wiki/wikka.php?wakka=DevBuildWindows where it says "To complete this new FB setup" ... I planned to switch the gcc version for my nightly builds to the one ...
by St_W
Oct 30, 2018 12:00
Forum: Community Discussion
Topic: Crescent Software products for DOS are now PD.
Replies: 8
Views: 366

Re: Crescent Software products for DOS are now PD.

I wonder why the author himself didn't come up with the idea of sharing as the software probably only has historic value nowadays (or even 10 years ago or so). Anyway, thank you for preserving a bit of history.
by St_W
Oct 28, 2018 17:16
Forum: Projects
Topic: Gameboy emulator written in FreeBasic
Replies: 15
Views: 713

Re: Gameboy emulator written in FreeBasic

You're obviously missing gtk libraries.
by St_W
Oct 22, 2018 19:58
Forum: General
Topic: Linux/Windows cross-platform sockets
Replies: 4
Views: 171

Re: Linux/Windows cross-platform sockets

Of course there's no winsock on Linux, but there are Linux sockets with a very similar (almost identical) API. So you just have to #include some different headers and replace the windows-specific WSA.. methods. WSAStartup/WSACleanup is not required on Linux, so you can simply put that into an #if wi...
by St_W
Oct 21, 2018 15:03
Forum: DOS
Topic: Help required in initialising FreeBASIC
Replies: 2
Views: 165

Re: Help required in initialising FreeBASIC

Hi, for general info on running FreeBasic see: https://freebasic.net/forum/viewtopic.php?f=2&t=14903 for recommended settings for FbIde see: https://freebasic.net/forum/viewtopic.php?f=2&t=19950 Once you've set up your IDE you can just open your .bas file and hit the compile button followed ...
by St_W
Oct 17, 2018 9:58
Forum: Community Discussion
Topic: New version?
Replies: 47
Views: 3899

Re: New version?

While I personally like the idea I don't think it can be implemented very soon for FB. Because if you're doing releases (no matter whether they are alpha/beta/rc/ga) so often you need to automate that. Currently the releases are built manually (with the help of some scripts) as far as I know, so doi...
by St_W
Oct 17, 2018 9:53
Forum: Windows
Topic: How to create a Panel control with win api ?
Replies: 11
Views: 347

Re: How to create a Panel control with win api ?

The Panel Control is documented here . It is over 15 years old, accessible only via .NOT methods, and nobody uses it. The link is refererring to an ASP.NET panel, which is something completely different and has absolutely nothing to do with Win32 API (but rather with javascript/html). What you prob...
by St_W
Oct 16, 2018 11:16
Forum: General
Topic: Declaring a Macro as global
Replies: 8
Views: 184

Re: Declaring a Macro as global

you're right, there's nothing like "dim shared" for macros, because they do not exist at runtime or even at link time. With your understanding of modules I think the macro should be available on all lines following its initial definition. #include once should be fine too. So if you #includ...
by St_W
Oct 15, 2018 18:03
Forum: General
Topic: Declaring a Macro as global
Replies: 8
Views: 184

Re: Declaring a Macro as global

I'm not sure whether we share a common understand of what a "module" is. I was referring to modules as separate compilation units, which is e.g. when you compile with "fbc main.bas module2.bas module3.bas". However, in that case you wouldn't include another module in the main mod...

Go to advanced search