Search found 180 matches

by Makoto WATANABE
Jul 23, 2020 13:28
Forum: Beginners
Topic: Window9 Sudoku generator and solver
Replies: 1
Views: 140

Solved: Sudoku generator and solver

I found a SuDoku program written in FreeBASIC at the following site. http://games.freebasic.net/dumpbyid.php?input=92 This program is able to generate SuDoku problems as well as solve input SuDoku problems very quickly. Programming a "Sudoku generator and solver" is an interesting task for...
by Makoto WATANABE
Jul 21, 2020 2:41
Forum: Beginners
Topic: Window9 Sudoku generator and solver
Replies: 1
Views: 140

Window9 Sudoku generator and solver

Window9 Генератор и решатель судоку http://users.freebasic-portal.de/freebasicru/sudoku.html This code displays a beautiful GUI as a Window9 example. However, the generated Sudoku contents do not change. Please let me know if this code can change the contents of Sudoku. By the way, I know that the f...
by Makoto WATANABE
Jul 16, 2020 10:14
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Dear Provoni; I use an associative array to match item orders to a item master. The program below collates the order of 50,000 items with the item master of 15,000 items and totals the order amount for each item. For this degree of quantity, I think that using Excel macro will make a easier system t...
by Makoto WATANABE
Jul 15, 2020 1:53
Forum: Beginners
Topic: Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"
Replies: 9
Views: 427

Re: Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"

Dear All ! Thank you all for teaching me so much. I, a beginner, don't really understand "descriptor" and "string descriptor". Then ,I feel dodicat's sample program to be very interesting. If you could add these details to the FreeBASIC Manual in the future, it would make it easi...
by Makoto WATANABE
Jul 14, 2020 14:11
Forum: Beginners
Topic: Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"
Replies: 9
Views: 427

Re: Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"

Dear MrSwiss

Thank you for teaching me immediately.

After reading your answer, I looked at the FreeBASIC Manual and I understood the contents.

> I'm only ever using: StrPtr() and @.
I would like to imitate your behavior.

Thank you very much.
by Makoto WATANABE
Jul 13, 2020 10:04
Forum: Beginners
Topic: Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"
Replies: 9
Views: 427

Difference between "Sadd", "StrPtr", "VarPtr", and "Address of"

Please teach me the difference between "Sadd", "StrPtr", "VarPtr", and "Address of" and how to use them properly. Dim ArrayStr(25) As String Dim i As Integer Dim Counter As Integer Counter = 0 Print "文字列 " ;"変数へのポインタ " ;"文字列ポインタ "...
by Makoto WATANABE
Jul 12, 2020 3:40
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Dear TJF; Thanks for your quick reply. > g_hash_table_insert(ArrayItemID, @!"AAC\0", GINT_TO_POINTER(987654)) Thank you for anticipating the pitfalls I would fall into next and teaching me the syntax. I was able to run my program that checks for hash data collisions. I increased the number...
by Makoto WATANABE
Jul 11, 2020 12:34
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Dear TJF; Thanks for your continued support and advice. > Your problem in step 3: both linkers (ld.exe and run-time) do not use then same binary (.dll). I copied the dlls extracted by "gtk2-runtime-2.24.10-2012-10-10-ash.exe" to the folder of my program source. After that, when I uninstall...
by Makoto WATANABE
Jul 10, 2020 11:12
Forum: Beginners
Topic: gtk +xml tutorial why not work?
Replies: 67
Views: 2118

Re: gtk +xml tutorial why not work?

Dear Xusinboy Bekchanov; Thank you for telling me the URL where I can download the required runtime all together. I was able to compile and run the FreeBASIC "GTK+" and "glib" sample programs by useing the "gtk3 32-bit dlls" and adding some of dlls I had. C:\Tool\FreeBA...
by Makoto WATANABE
Jul 05, 2020 3:15
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Dear All ! Thanks for your advice. Dear Provoni; I want to implement an associative array. I have already learned that "The Ultimate FB HashMap" can be used to implement associative arrays. https://www.freebasic.net/forum/viewtopic.php?f=7&t=24440&p=273654#p273478 In addition to th...
by Makoto WATANABE
Jul 03, 2020 14:24
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Dear TJF; Thanks for your reply. Dear jj2007; Yes I am so lazy! I downloaded FreeBASIC-1.07.1-win32.exe(MD5:433309afceaf34f24f2ee22e827e5c93) and I installed it. ***************************** Microsoft Windows [Version 10.0.18363.900] (c) 2019 Microsoft Corporation. All rights reserved. C:\Users\e57...
by Makoto WATANABE
Jul 03, 2020 10:53
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Sorry.

This program is too difficult for me.
I was unable to compile with following errors.
C:\Tool\FreeBASIC\bin\win32\ld.exe: cannot find -lglib-2.0
C:\Tool\FreeBASIC\bin\win32\ld.exe: cannot find -lgthread-2.0

Is there anyone who compiled and ran this program in a Windows environment?
by Makoto WATANABE
Jun 29, 2020 15:03
Forum: Tips and Tricks
Topic: Fast text search (hash table / GLib)
Replies: 19
Views: 1822

Re: Fast text search (hash table / GLib)

Hi ! I copied the "glib.bi" of "C:\Tool\FreeBASIC\inc\glib.bi" into "TJF" folder and tried to compile "HashTable_glib.bas". The following error was displayed. Where can I get "-lgthread-2.0"? C:\Tool\FreeBASIC\bin\win32\ld.exe: cannot find -lgthread-...
by Makoto WATANABE
Jun 29, 2020 12:26
Forum: Beginners
Topic: Simultaneous use of "The Ultimate FB HashMap" and "FB GUI library for Windows"
Replies: 6
Views: 371

Re: Simultaneous use of "The Ultimate FB HashMap" and "FB GUI library for Windows"

Dear All ! Thank you everyone for supporting me. Dear paul doe; Thank you for telling me how to solve it. As you taught me, I changed "bool" in "hashmap.bi" to "__bool" and now I can use both "The Ultimate FB HashMap" and "FB GUI library for Windows"...
by Makoto WATANABE
Jun 29, 2020 3:44
Forum: Beginners
Topic: Simultaneous use of "The Ultimate FB HashMap" and "FB GUI library for Windows"
Replies: 6
Views: 371

Re: Simultaneous use of "The Ultimate FB HashMap" and "FB GUI library for Windows"

Dear TJF; Thanks for your advice. Unfortunately, I couldn't compile because it became "Illegal inside a compound statement or scoped block". Error details: H:\Tool\FbEdit\Projects\AssociativeArray\HashMap\TheAdventureOfTheDancingMen\hashmap.bi(10) error 96: Illegal inside a compound statem...

Go to advanced search