Search found 59 matches

by Carlos Herrera
Dec 16, 2018 9:04
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 425

Re: Passing fixed-len string as arguments: possible but not recommended?

Boris the Old wrote:... support for decimal arithmetic (floating point just isn't acceptable for business calculations)...

What's wrong with floating point in FB? Could you be more specific?
Carlos
by Carlos Herrera
Nov 19, 2018 22:41
Forum: Tips and Tricks
Topic: The Mergesort algorithm.
Replies: 29
Views: 799

Re: The Mergesort algorithm.

Which means that either your FB implementation of shellsort is very inefficient, or the C runtime sort is not a shellsort. Indeed. Here is an efficient implementation of ShellSort procedure SortShell(var A: TVector); var ua, N: LongInt; j, k, h: LongInt; ta: double; begin ua := High(A); N := ua; h ...
by Carlos Herrera
Oct 19, 2018 15:00
Forum: Community Discussion
Topic: [offtopic] FreePascal
Replies: 73
Views: 3212

Re: [offtopic] FreePascal

...The the 32-bit compiler also uses SSE, and the results are in the same magnitude as 64-bit. Speed is one factor, another is accuracy. Please consider the following program (*-----------------------------------------------------------------------*) (* EPSMACH computes the machine accuracy u (1.0+...
by Carlos Herrera
Oct 11, 2018 21:39
Forum: Community Discussion
Topic: [offtopic] FreePascal
Replies: 73
Views: 3212

Re: [offtopic] FreePascal

@marcov
I am in the process of migrating from fbc to fpc. I hope that Free Pascal is as fast as Free Basic.
Is it also a kind of gcc emitter?
Carlos
by Carlos Herrera
Sep 06, 2018 7:38
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated January 22, 2019)
Replies: 463
Views: 44121

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated September 5, 2018)

PaulSquires wrote:Please let me know .... if there is anything else that should be included in the package.

Please consider the pre-compiled versions of FBMath library by Jean Debord. If author agrees, of course.
Carlos
by Carlos Herrera
Aug 22, 2018 15:05
Forum: Windows
Topic: Problem with Draw
Replies: 5
Views: 336

Re: Problem with Draw

Line is affected by View , Draw is not If you change colour of the line which is drawn with Draw command, you will see that it is not visible outside the white rectangle. It means that Draw is affected by View , but so-to-say partly... BTW, on VIEW (GRAPHICS) page Draw command is not mentioned and ...
by Carlos Herrera
Aug 21, 2018 21:36
Forum: Windows
Topic: Problem with Draw
Replies: 5
Views: 336

Problem with Draw

Hi All, Minimal program below illustrates the problem #Include "fbgfx.bi" Const red = &HAA0000, grey = &HAAAAAA, white = &HFFFFFF Screenres 500, 500, 32 View (100,50)-(400, 400), white, grey Line (0, 0)-(350, 350),grey,B ' draw line with Line Line (10,10) - (300, 300), red ' dr...
by Carlos Herrera
Aug 20, 2018 11:14
Forum: Beginners
Topic: More on closing windows
Replies: 8
Views: 771

More on closing windows

Hi All, I know that we had better open the windows than close, but consider the following code: ' uses WinGUI(12) by Lothar Schirm #Include "WinGUI.bi" #Include "fbgfx.bi" Using FB Dim As HWND Window_Main, Graphic_Screen, Button_Open, Button_Close Dim As MSG msg dim as string dri...
by Carlos Herrera
Aug 17, 2018 20:54
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 573

Re: How to close a window

fxm wrote:DestroyWindow(Window_Main) ?

Yes, it works for me. Thank you,
Carlos
by Carlos Herrera
Aug 17, 2018 8:13
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 573

How to close a window

Hi All, I asked this question before but I did not get any answer, so let me ask again here. To be more specific consider the following program ' uses WinGUI(12) by Lothar Schirm #Include "WinGUI.bi" Dim As HWND Window_Main, Label_txt Dim As MSG msg Window_Main = Window_New (100, 100, 300,...
by Carlos Herrera
Aug 13, 2018 14:03
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 54
Views: 10654

Re: Simple WinAPI GUI library

Hi All,
Is it possible to close a main window, return to the console and keep program running?
Thanks in advance,
Carlos
by Carlos Herrera
Feb 11, 2018 10:05
Forum: Documentation
Topic: Wiki improvements
Replies: 253
Views: 14716

Re: Wiki improvements

sancho3 wrote:A Brief Introduction To Trigonometry No problems.

The tutorial does not clearly explain important differences between ATAN and ATAN2 functions
(first returns angles in (-pi/2,+pi/2] interval whereas second outputs values in the (-pi,+pi] range, ...).
by Carlos Herrera
Jan 20, 2018 14:53
Forum: Community Discussion
Topic: Using FreeBASIC in the classroom?
Replies: 11
Views: 1170

Re: Using FreeBASIC in the classroom?

So, I'd like to know if anyone here have any practical experience with programming as a teaching tool? Yes, I have a lot. Numerical and symbolic calculations help to introduce difficult concepts fast and on a practical level. But don't start with programing. Use Maxima (with wxMaxima GUI). It is fr...
by Carlos Herrera
Jan 01, 2018 18:55
Forum: Community Discussion
Topic: Part 3 Action "the GUI library"
Replies: 121
Views: 4837

Re: Part 3 Action "the GUI library"

Who said Dislin must be included? It is enough to include examples. And how are they supposed to work, without the library? Apparently, you do not understand what I am talking about, because of my bad English. Let me repeat, this library exists. Short instruction on downloading and installing may b...
by Carlos Herrera
Jan 01, 2018 16:30
Forum: Community Discussion
Topic: Part 3 Action "the GUI library"
Replies: 121
Views: 4837

Re: Part 3 Action "the GUI library"

It is a close source project but it is free for non-commercial use. So, it is completely useless for our purpose. Without source, it can't be adapted or updated. And a license that is free only for non commercial use would not allow to include it in FreeBasic, or in any software developed with it (...

Go to advanced search