Search found 849 matches

by grindstone
Sep 27, 2023 14:22
Forum: Community Discussion
Topic: Missing in action.
Replies: 28
Views: 4119

Re: Missing in action.

My deepest condolences, it's always hard to lose a loved one. Keep your head up, life goes on.

I'm sure you'll meet her again some day.

Regards
grindstone
by grindstone
Sep 04, 2023 14:49
Forum: Libraries & Headers
Topic: Library, Project, Example Code Archive
Replies: 7
Views: 1996

Re: Library, Project, Example Code Archive

Such a well sorted archive, something similar to Code-Beispiele or Projektvorstellungen of the german forum I'm missing badly here. The codes are put there by the programmers themselfes, so it shouldn't mean too much work for the mods.
by grindstone
Aug 14, 2023 14:32
Forum: Community Discussion
Topic: Anyone still here from the old QB45 days?
Replies: 28
Views: 11048

Re: Anyone still here from the old QB45 days?

In the late 80s I bought my first 2nd hand PC, with a 286@12 Mhz, 1MB(!) of RAM and a 10MB harddisk with MS_DOS installed. Pretty soon I found that "qbasic.exe" and was keen about the incredible speed of my new "byte racer" in comparison with my old C64. :mrgreen:
by grindstone
Aug 08, 2023 13:21
Forum: Windows
Topic: Alternative to HWND variable declaration
Replies: 5
Views: 1622

Re: Alternative to HWND variable declaration

GetDC returns a value of the type " H andle of a D evice C ontext", while your Hdc is DIMmed as Long. The value is converted automatically and the compiler throws a warning, although it will work. In FB you are allowed to use a type name as variable name as well in the same program, but i...
by grindstone
Jul 16, 2023 0:59
Forum: Beginners
Topic: Passing string parameters to subroutine
Replies: 5
Views: 1668

Re: Passing string parameters to subroutine

You don't need any pointer, just pass the string ByRef: Sub parse(ByRef rom As String) Dim As Integer b, e Print Len(rom) Print b = 1 Do e = InStr(b, rom, " ") Print Mid(rom, b, e - b) b = e + 1 Loop While e End Sub Dim As String somedata = "The big brown fox jumped over the lazy dog&...
by grindstone
Jul 01, 2023 15:40
Forum: Beginners
Topic: http get, post
Replies: 3
Views: 1390

Re: http get, post

Quite old, but it still should work:
https://www.freebasic-portal.de/code-be ... n-105.html
by grindstone
Mar 19, 2023 20:22
Forum: Game Dev
Topic: Speed
Replies: 34
Views: 11580

Re: Speed

To get a loop executed 25 times a second I would recommend this: Do timecomp = Timer + .04 '1/25 second ' 'put here the code to be executed 25 times per second ' Do While Timer < timecomp 'waste the rest of the time... Loop Loop So you don't have to care about the execution time of the code even if ...
by grindstone
Mar 06, 2023 12:47
Forum: Game Dev
Topic: Speed
Replies: 34
Views: 11580

Re: Speed

Generating a constant and precise delay is quite simple:

Code: Select all

Dim timecomp As Double

timecomp = Timer + .001 'add requested delay in (fraction of) seconds
Do While Timer < timecomp
	'waste some time...
Loop
by grindstone
Feb 27, 2023 8:59
Forum: General
Topic: [SOLVED - Win11 bug] bizarre behavior with multiple print statements
Replies: 4
Views: 570

Re: [Bug?] bizarre behavior with multiple print statements

Also no problem with WinXP 32bit / fbc 1.05
by grindstone
Feb 24, 2023 16:23
Forum: Community Discussion
Topic: Chatting with AI
Replies: 91
Views: 12750

Re: Chatting with AI

Given a group of AI trainers who are the nicest people one would ever wish to meet, then we could have an AI which is a pleasure to interact with. Maybe, but in my experience, the more politically correct a statement the more insignificant it becomes, at least tendentially. It could be difficult to...
by grindstone
Jan 24, 2023 21:57
Forum: Community Discussion
Topic: Chatting with AI
Replies: 91
Views: 12750

Re: Chatting with AI

For me, the fastest way to recognize faces was to observe the patterns from the corner of my eyes. I think that's a relic of the times we were tree-dwelling. This would surely help our ancestors to survive, but can it really be called intelligence?
by grindstone
Jan 13, 2023 11:53
Forum: Libraries Questions
Topic: Am i trying to create and use this library correctly here?
Replies: 4
Views: 2799

Re: Am i trying to create and use this library correctly here?

@caseih: I'm afraid, your response could be a little misunderstandable. The Type definition has to be done in both the dll and the calling program. Using a .bi file is good custom (and recommendable), but it is not necessary. Furthermore the procedure(s) of the dll have to be specified "Export&...
by grindstone
Dec 03, 2022 8:58
Forum: Beginners
Topic: Redirecting standard output of compiled executables (Window)
Replies: 3
Views: 989

Re: Redirecting standard output of compiled executables (Window)

Change the call to "SHELL "c:\freebasic\fbc64 f.exe > ans" and it should work.
by grindstone
Nov 15, 2022 15:20
Forum: Emscripten
Topic: Will FreeBASIC support web?
Replies: 23
Views: 6540

Re: Will FreeBASIC support web?

It's not my intention to offense anyone, it's only just an observation.

I'm still looking for an opportunity to use FB on Android devices, and Emscripten seems to be a way it can be done.
by grindstone
Nov 14, 2022 17:58
Forum: Emscripten
Topic: Will FreeBASIC support web?
Replies: 23
Views: 6540

Re: Will FreeBASIC support web?

I would support this, but I doubt that it will happen. The maintainers of this forum seem not to be willing (or able) to change anything.