Search found 436 matches

by Lothar Schirm
Apr 03, 2024 15:28
Forum: Sources, Examples, Tips and Tricks
Topic: Three swinging sticks kinetic energy
Replies: 16
Views: 1298

Re: Three swinging sticks kinetic energy

Very nice! Some time ago I wrote nearly the same animation, only for one pendulum, solving the differential equation of motion by using the Runge-Kutta method, but your simple solution has a very clear code and is easy to understand (as well as your simulation of gravitation in an other post recentl...
by Lothar Schirm
Mar 24, 2024 11:51
Forum: Windows
Topic: Gui calculator
Replies: 17
Views: 854

Re: Gui calculator

@PaulSquires, I understand what you mean. Perhaps it would be helpful if you could add to WinFBE a little tutorial with some simple examples, e.g. how to create a simple GUI with textboxes and buttons and their event handling with your form designer, as it has been done with FBEdit, e.g. a simple ca...
by Lothar Schirm
Mar 23, 2024 16:25
Forum: Beginners
Topic: Dictionary Part two
Replies: 5
Views: 330

Re: Dictionary Part two

hm... very mini! Is this just a short test? The list of "special words" is rather short, and the program is finished after one word has ben translated. I think the program should run in a loop until the user terminates it.
by Lothar Schirm
Mar 23, 2024 15:04
Forum: Beginners
Topic: Dictionary Part two
Replies: 5
Views: 330

Re: Dictionary Part two

Hi Frank,
looks nice, but could you add a dictionary file as example so that it is possible to play around wth your code? Why do you include windows.bi? Your program seems to be a console application.
by Lothar Schirm
Mar 23, 2024 14:53
Forum: Windows
Topic: Gui calculator
Replies: 17
Views: 854

Re: Gui calculator

RNBW wrote: Mar 23, 2024 13:47
I tried WinFBE some time ago and I found it hard to get my head around.
That's what I am feeling too.
by Lothar Schirm
Mar 22, 2024 15:47
Forum: Windows
Topic: Gui calculator
Replies: 17
Views: 854

Re: Gui calculator

Hi Ray, thank you very much for your interest. "WinLib" has been downloaded more than 160 times now, but meanwhile I prefer to write small GUI programs directly by using pure Windows API. I use some templates for creating a window and all basic controls which can be modified easily. Especi...
by Lothar Schirm
Mar 20, 2024 17:52
Forum: Windows
Topic: Gui calculator
Replies: 17
Views: 854

Re: Gui calculator

Hi RNBW, a small mistake: Button_Ok is not created in the window, so message WM_LBUTTONDOWN will not work as expected. :o This is the code modified for WinLib.bi (the modified version of WinGUI.bi): ' ============================================= ' NUMERIC INPUT IN A TEXTBOX ' File Name: NumericEntr...
by Lothar Schirm
Mar 18, 2024 15:15
Forum: General
Topic: screenres with a vertical scroll bar
Replies: 16
Views: 781

Re: screenres with a vertical scroll bar

No, not really. You might try to use the Windows API, I found this code: #Include Once "windows.bi" Dim As Integer style Dim As HWND hWindow Dim As RECT r ScreenRes 400,300,32 hWindow = GetForegroundWindow() style = GetWindowLong(hWindow, GWL_STYLE) GetWindowRect(hWindow, @r) SetWindowLong...
by Lothar Schirm
Mar 18, 2024 15:00
Forum: Windows
Topic: Gui calculator
Replies: 17
Views: 854

Re: Gui calculator

I wonder while you use the ES_NUMBER style in your edit boxes. By this way you cannot use decimals (e.g. 123.567), only integers.
by Lothar Schirm
Mar 15, 2024 16:03
Forum: Beginners
Topic: Read text File and a word
Replies: 5
Views: 365

Re: Ready Text File and a word

Store your text line by line into an array and use "InStr" to search a word.
by Lothar Schirm
Mar 09, 2024 16:13
Forum: Beginners
Topic: Btrieve - declarion help
Replies: 5
Views: 293

Re: Btrieve - declarion help

May this be helpful? viewtopic.php?t=16171
by Lothar Schirm
Mar 09, 2024 10:59
Forum: Beginners
Topic: Btrieve - declarion help
Replies: 5
Views: 293

Re: Btrieve - declarion help

I do not know anything about Btrieve and do not have experiences in working with dlls. I am exclusively programming in FreeBasic as a hobby, sometimes I also play a little bit with simple Windows GUIs. I think if you want to include an external library, you have do include a header file (in this cas...
by Lothar Schirm
Mar 08, 2024 16:05
Forum: Sources, Examples, Tips and Tricks
Topic: The Travelling Salesman Problem
Replies: 21
Views: 1184

Re: The Travelling Salesman Problem

Seems to be a nice stuff to play with! BasicCoder2: If you increase the numbers of cities, the computation time will decrease dramatically with that brute force method, as expected.
by Lothar Schirm
Mar 08, 2024 15:45
Forum: Windows
Topic: Interpretation
Replies: 9
Views: 642

Re: Interpretation

I tested it last year. Very bad experiences. I could only run some programs which were delivered with this app, nothing else. Have a luck at the ratings!
by Lothar Schirm
Mar 07, 2024 15:20
Forum: Beginners
Topic: Btrieve - declarion help
Replies: 5
Views: 293

Re: Btrieve - declarion help

I do not know how Function BTRCALL is defined, but the main error seems to be in the first line: Declare Function BTRCALL Lib "wbtrv32.dll" (ByVal Word, Asciiz, any, Integer, Any, ByVal Byte, ByVal Byte) As Integer You have a long list of parameters without defining their types. A correct ...