Search found 3266 matches

by MrSwiss
Nov 19, 2019 18:13
Forum: Tips and Tricks
Topic: Brownian motion.
Replies: 36
Views: 1324

Re: Brownian motion.

!! Content edited by Moderator for relevance !!
by MrSwiss
Nov 19, 2019 17:02
Forum: Tips and Tricks
Topic: Brownian motion.
Replies: 36
Views: 1324

Re: Brownian motion.

FYI: using dependencies (aka: OS related stuff, like WIN-API) is the typical PB way of thinking . Switch to the FB way of thinking : only ever use OS related things, if it is 100% unavoidable. As long as FB has got the functionality (e.g. Mersenne Twister) use that for seeding ... (and forget WIN-Cr...
by MrSwiss
Nov 17, 2019 0:50
Forum: General
Topic: Ptr to an array? (Was: Possible to ReDim with only a ptr?)
Replies: 10
Views: 497

Re: Ptr to an array? (Was: Possible to ReDim with only a ptr?)

Current DEV versions of FBC 1.08.0 can be got from: users.freebasic-portal.de/stw/builds/ . You also might have to get: freebasic_additional_headers.zip, and add it to FBC's inc directory. For more informaton on new array-header features, check: [FBC-install]/inc/fbc-int/array.bi (absolutely no beer...
by MrSwiss
Nov 15, 2019 18:10
Forum: Linux
Topic: Finding Home folder in FB
Replies: 3
Views: 319

Re: Finding Home folder in FB

For multi-user peruse, I'd split the stuff into: ⋅ user related (configuration related, e.g. rights of access) ⋅ program related (resources needed by prog. to run) In WIN you have UserName system variable, to make a "user specific path". Use: Environ statement, to "...
by MrSwiss
Nov 12, 2019 17:52
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 539

Re: FB-1.07.1-gcc-6.4

srvaldez wrote:yes, that works, however, optimization options seem to cause problems

Yes, that's the problem just added: "-O 2" and, I'm getting garbage ... as described.
by MrSwiss
Nov 12, 2019 17:36
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 539

Re: FB-1.07.1-gcc-6.4

The simplest I could come up with: fbc -dylib -export "blah-dll.bas"
(implicit: console/-gen gcc)
by MrSwiss
Nov 12, 2019 17:23
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 539

Re: FB-1.07.1-gcc-6.4

Not quite: without the "declaration", there may also be problems (not 100% certain).

The Extern "..."/ End Extern is of course mandatory (for DLL's & SO's).
by MrSwiss
Nov 12, 2019 16:58
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 539

Re: FB-1.07.1-gcc-6.4

Hi srvaldez, after finishing the DLL-code (was IMO incomplete) it compiles, without a hitch. DLL-code: Declare Function createComponent alias "createComponent"(byref aComponentName as const string) As any Ptr Extern "windows" function _ createComponent alias "createComponent...
by MrSwiss
Nov 12, 2019 16:13
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 21
Views: 539

Re: FB-1.07.1-gcc-6.4

Hi srvaldez,

I don't quite understand. Just quickly made a test .DLL and a lil' proggie using it, with
your GCC 9.2 - x64 - WIN - build (FBC 1.07.1 -- 2019-10-08) and all works as expected?!?
by MrSwiss
Nov 11, 2019 17:08
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

Obviously "other peoples arguments" don't seem to count at all. You don´t need a separate overloaded function for each type of array in this case. You're right (I don't need it) but also wrong, most users demand "ease of use" and, that is what it's all about (as Lost Zergling con...
by MrSwiss
Nov 11, 2019 15:17
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

I already have developped similar (much more comprehensive) array ... That others would likely call: BLOAT. (JK seems to only want "his own stuff", using any means preferably without competition, see below for explanation) - MrSwiss replied, that my method would require 7 calls to get the...
by MrSwiss
Nov 10, 2019 22:35
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

MrSwiss wrote:Anyhow, separately compiled isn't the same as include-file (point at issue, right now!).
by MrSwiss
Nov 10, 2019 22:20
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

fxm wrote:My principle also works if the procedure definitions are in a separate module.

??? do you mean, separate module than the implementation ?
Anyhow, separately compiled isn't the same as include-file (point at issue, right now!)
by MrSwiss
Nov 10, 2019 22:04
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

NO, fxm's method doesn't work in a include-file (aka: .bi). ERROR: "type mismatch" (as expected). (seems to only work at the same level of code) Explanation: It should be as easy as possible for the user to make a call. (not something like FBC.ArrayType(@array(LBound(array)...
by MrSwiss
Nov 10, 2019 19:55
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 117
Views: 5939

Re: FreeBASIC 1.08 Development

@JK, seems to me that you don't understand, what it's all about and how the Macro "works" within the context. You should take some time to study the code to understand, "why" things are done in that particular way, in the implementation. Btw: your provided code makes no sense to ...

Go to advanced search