Search found 69 matches

by Carlos Herrera
Jun 08, 2019 8:33
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 178

Re: How to detect that window has been resized

Thank you JJ in the name of miserable FB coders. I will try to squeeze your solution into WinGUI framework. BTW, when compiling your program I have got the following warnings (1.05). ..warning 1(1): Passing scalar as pointer, at parameter 10 of CREATEWINDOWEX() ..warning 4(1): Suspicious pointer ass...
by Carlos Herrera
Jun 07, 2019 22:55
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 178

How to detect that window has been resized

Dear All, Please consider the following program (it uses WinFB library) '=============================================================================== ' How to detect that window have been resized? '=============================================================================== #Include "WinG...
by Carlos Herrera
Jun 01, 2019 17:36
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 58
Views: 12312

Re: Simple WinAPI GUI library

@UEZ Great, beautiful pattern. However, it is not clear, at least for me, how to use this procedure in the context of WinGUI library. For example with ... Dim As HWND hHWND 'ScreenControl(FB.GET_WINDOW_HANDLE, Cast(Integer, hHWND)) hHWND = Window_New (40, 40, 860, 860, "Test") draw_buffer(...
by Carlos Herrera
Jun 01, 2019 8:30
Forum: Projects
Topic: Simple WinAPI GUI library
Replies: 58
Views: 12312

Re: Simple WinAPI GUI library

Hey, First of I would like thank the creator for this nice library. Later when using the library I realized that it would be nice if we could also put freebasic image buffers onto a window. I already compiled a subroutine of code (from various code snippets from the forum) that gets the job done, ....
by Carlos Herrera
May 20, 2019 16:40
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2210

Re: Creating (scientific) plots via gnuplot

Here is some dislin code for the original voltage over current display. I found inc\dislin.bi but the linker is not happy: ld.exe: cannot find -ldismgc I have also downloaded the MediaFire dislin.zip but there is no readme explaining where the files should end up, relative to fbc.exe. Go to the dis...
by Carlos Herrera
May 16, 2019 20:34
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 410

Re: using gnuplot in Windows

@jj2007 Since I don't now how to create "window" or "control" in a simple way, such problems do not bother me much. But of course, it would be nice to "dock" gnuplot terminal within window created with winAPI. However, this question should be asked to "resident exp...
by Carlos Herrera
May 16, 2019 18:33
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 410

Re: using gnuplot in Windows

I use gnuplot for plotting live data in my project. The small demo program is attached below. I use Open Pipe trick, which I have learned from this forum. I am mot sure if the same results can be obtained using shell command. Carlos ' ' Gnuplot plotting of live data demo ' #Include Once "crt\st...
by Carlos Herrera
May 16, 2019 8:27
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2210

Re: Creating (scientific) plots via gnuplot

This is a very good idea but I think in general it is better to open gnuplot in persistent mode and write to its graphics terminal directly, using the Open Pipe mechanism. Gnuplot terminal, at least on windows, is very impressive (antialiasing, GDI+,...) and very fast. If an old and buggy fbgfx form...
by Carlos Herrera
Feb 08, 2019 13:45
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 580

Re: Matrix to string

Thank you all for the rapid and extremely helpful responses.
Carlos
by Carlos Herrera
Feb 08, 2019 9:16
Forum: Beginners
Topic: Matrix to string
Replies: 15
Views: 580

Matrix to string

Dear All, The following simplistic procedure converts a double precision matrix to the string. sub clip_string_uni_matrix (Z() As Double) ' converts matrix to clips string variable, which is global ' terminate with CRLF, also the last line Dim As Integer lbx, ubx, lby, uby, i, j, nx, ny, nxy, nzsize...
by Carlos Herrera
Dec 16, 2018 9:04
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 740

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: 1356

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: 4965

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: 4965

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 March 25, 2019)
Replies: 516
Views: 58265

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

Go to advanced search