Search found 2146 matches

by MrSwiss
Jan 19, 2018 20:47
Forum: Beginners
Topic: Sample programs
Replies: 46
Views: 665

Re: Sample programs

@jj2007,

I'm using (almost exclusively), FBC 64-bit ... (therefore, GCC).
by MrSwiss
Jan 19, 2018 20:30
Forum: Beginners
Topic: Sample programs
Replies: 46
Views: 665

Re: Sample programs

Well, yes but, unfortunately not correct: #define WIN_INCLUDEALL #include Once "windows.bi" #Include Once "/win/commctrl.bi" #include Once "file.bi" Sub getfiles( _ Byref SomeFile As OpenFileName, _ ByRef msg As Const String, _ ByRef flag As Const String _ ) Dim As zstr...
by MrSwiss
Jan 19, 2018 17:51
Forum: Beginners
Topic: Sample programs
Replies: 46
Views: 665

Re: Sample programs

.Net is to complicated and maybe Free Basic is to light weight. FreeBASIC is more *heavy weight* than C, but less so, than C++! (just to give some idea, for positioning) Since it is a rather low level language, there is more to learn, for a novice programmer, as soon, as you want to do system-calls...
by MrSwiss
Jan 18, 2018 0:55
Forum: Game Dev
Topic: readability checker board
Replies: 20
Views: 316

Re: readability

With regards to taking the vertical and horizontal calculations out of the paramater list ... This exactly is, where your method "eats speed" (with unnecessary calculations), especially the vertical calculation. Which only needs to be updated, when the outer loop is run. (simple logic thi...
by MrSwiss
Jan 17, 2018 22:27
Forum: Game Dev
Topic: readability checker board
Replies: 20
Views: 316

Re: readability

Usually I would put readability ( by a novice ) before speed. IMHO, readable code also needs to be: "commentable", which in your style, is clearly close to impossible. In your calculations (as parameters), a novice simply has to guess, what you're doing. Just a code excerpt, to explain ab...
by MrSwiss
Jan 17, 2018 20:55
Forum: Game Dev
Topic: checkers try
Replies: 9
Views: 202

Re: checkers try

BasicCoder2 wrote:Usually I would put readability (by a novice) before speed.
Your codes (all of them) are examples, of non-readability, IMHO.
(all the clumsy calculations, in Sub/Function parameters, to be precise,
apart from the fact, that it is also: sloooooooooow)
by MrSwiss
Jan 17, 2018 20:47
Forum: General
Topic: Simple Expressions showing "-1.#IND" results?
Replies: 10
Views: 178

Re: Simple Expressions showing "-1.#IND" results?

I think that you've hit negative infinity: see wikipedia.org/wiki/Infinity ...
by MrSwiss
Jan 17, 2018 20:19
Forum: Beginners
Topic: Sample programs
Replies: 46
Views: 665

Re: Sample programs

Actually II login in to SimBrief and create a Flight Plan, When I'm finished I select the aircraft and hit the download button. The flight plan is then downloaded by Simbrief to my Downloads directory. That means to me, that you don't need any Networking, in your program. Therefore, the first thing...
by MrSwiss
Jan 17, 2018 15:46
Forum: Game Dev
Topic: checkers try
Replies: 9
Views: 202

Re: checkers try

BasicCoder2 wrote:Personally I find using the step word confusing.
Not at all, it simply states:
the second set of coordinates, is relative (to the start coordinates) instead of absolute.

Thus, eliminating some calculations required, otherwise. (Speed, is the name of the game!)
by MrSwiss
Jan 17, 2018 14:33
Forum: General
Topic: Has FreeBasic forum space for Lib or Program Sharing?
Replies: 5
Views: 102

Re: Has FreeBasic forum space for Lib or Program Sharing?

geminis4941 wrote:If I want to show and image in the post...is the same problem?
Yes (Images = external storage)
geminis4941 wrote:If I use the forum for lib and projects, can I Load a zip file in the post without an alternative server ( pe. sourceforge)?
No (source code only!)
by MrSwiss
Jan 17, 2018 13:41
Forum: Game Dev
Topic: checkers try
Replies: 9
Views: 202

Re: checkers try

Well, the Array definition, currently says different: (15 x 15) dim shared as integer p(14,14) Explanation (lets write it BASIC style, to show the error): dim shared as integer p(0 to 14, 0 to 14) declares actually a 15 x 15 elements Array, therefore, its either: dim shared as integer p(13,13) ' NUL...
by MrSwiss
Jan 17, 2018 12:34
Forum: General
Topic: Has FreeBasic forum space for Lib or Program Sharing?
Replies: 5
Views: 102

Re: Has FreeBasic forum space for Lib or Program Sharing?

If I want to share a lib or program code or zip files whith other users ... Let me split that question into 2 parts. 1) source code only (short: Yes) 2) source code and/or zip file(s) (short: No) 1) No problem, use appropriate Sub Forum (libraries or projects) 2) External storage: SourceForge, GitH...
by MrSwiss
Jan 16, 2018 18:43
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 43
Views: 814

Re: Routines to write syntax highlighted code

Well, I'd call that, a unfair comparison ... As soon as the source code gets larger, which leads in C almost instantly, to more included libraries, the difference shrinks remarkably. The philosphies are different: C minimalistic (almost everything, in external libraries) FreeBASIC all-in-one (no ext...
by MrSwiss
Jan 16, 2018 17:50
Forum: Tips and Tricks
Topic: Routines to write syntax highlighted code
Replies: 43
Views: 814

Re: Routines to write syntax highlighted code

IchMagBier wrote:... the reason why fbc-generated executables are really big (At least that's what I believe).
You must be joking!
Have a look at executables sizes, created by other compilers.
(you can't get much smaller than FBC's .exe)
Except perhaps with pure Assembly (however, not regarded as a HLL).
by MrSwiss
Jan 16, 2018 14:12
Forum: General
Topic: Benefits of inline if?
Replies: 31
Views: 552

Re: Benefits of inline if?

There are advantages and disadvantages. We could have that discussion. But those are basically the only two options. My personal preference, would be (if at all, possible): don't rely on externals (IIF is AFAIK a Library, of it's own), if it can be solved with FBC's internal functionality. Main rea...

Go to advanced search