Search found 72 matches

by Carlos Herrera
Sep 20, 2019 17:01
Forum: Beginners
Topic: File created by an external program
Replies: 4
Views: 226

Re: File created by an external program

@grindstone
This is very nice solution but I would rather avoid windows.bi, therefore
I will follow MrSwiss suggestion. In fact, I have contemplated something similar
with renaming of a "control" file.
Thank you both.
by Carlos Herrera
Sep 20, 2019 8:06
Forum: Beginners
Topic: File created by an external program
Replies: 4
Views: 226

File created by an external program

File is created by external program and FreeBasic should wait until it is done. I tried to introduce the necessary delay by checking the file length: Dim As String pathim Dim As Integer length1, length2 ' check if file is ready Do length1 = Filelen(pathim) Sleep 100 length2 = Filelen(pathim) Loop Un...
by Carlos Herrera
Jul 28, 2019 8:47
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 1379

Re: How to draw simple scatterplot with GSL

Have a look at FBMath library by Jean Debord.
by Carlos Herrera
Jun 08, 2019 8:33
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 1078

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

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

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

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

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

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

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

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

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

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

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

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 ...

Go to advanced search