you missed lines 373, 393, 414, 468, 478, 517
I suggest that try to compile in 64-bit before posting, and the rectangles are all black, see my posted mod above
Search found 3472 matches
- Nov 01, 2024 19:31
- Forum: Beginners
- Topic: Mdi example help
- Replies: 27
- Views: 1964
- Nov 01, 2024 16:50
- Forum: Beginners
- Topic: Mdi example help
- Replies: 27
- Views: 1964
Re: Mdi example help
sorry SARG, I saw it but when I tried Löwenherz last entry I thought that he would have made the corrections that you mentioned, but when I tried to compile in 64-bit I encountered errors
- Nov 01, 2024 16:07
- Forum: Windows
- Topic: Rnd6 for Windows
- Replies: 43
- Views: 6473
Re: Rnd6 for Windows
hello deltarho[1859] have you had a look at the Windows rand_s function ? Return Value Zero if successful, otherwise, an error code. If the input pointer randomValue is a null pointer, the function invokes an invalid parameter handler, as described in Parameter Validation. If execution is allowed to...
- Nov 01, 2024 14:58
- Forum: Beginners
- Topic: Mdi example help
- Replies: 27
- Views: 1964
Re: Mdi example help
here the code with the corrections a mentioned and also some changes to the RectWndProc function, now it draws colored rectangles ' mdi example, update part two, freebasic, loewenherz ' 30-10-2024, GO :-) ' #Include "windows.bi" '#include once "crt.bi" Dim Shared As HINSTANCE hIn...
- Nov 01, 2024 13:55
- Forum: Beginners
- Topic: Mdi example help
- Replies: 27
- Views: 1964
Re: Mdi example help
hello Löwenherz
you need to change all SetWindowLong to SetWindowLongPtr and all SetWindowLongPtr (hwnd, 0, cast(Long to SetWindowLongPtr (hwnd, 0, cast(Integer
then it will compile and run in both 32 and 64 bit, but the rectangles are all black, there's no variation in colors
you need to change all SetWindowLong to SetWindowLongPtr and all SetWindowLongPtr (hwnd, 0, cast(Long to SetWindowLongPtr (hwnd, 0, cast(Integer
then it will compile and run in both 32 and 64 bit, but the rectangles are all black, there's no variation in colors
- Oct 26, 2024 10:25
- Forum: Community Discussion
- Topic: Happy birthday dodicat
- Replies: 18
- Views: 1724
Happy birthday dodicat
Happy birthday dodicat
- Oct 19, 2024 14:17
- Forum: Sources, Examples, Tips and Tricks
- Topic: Prime sieve and factorization
- Replies: 5
- Views: 694
Re: Prime sieve and factorization
hi hhr
now all you need is to implement the Quadratic sieve https://en.wikipedia.org/wiki/Quadratic_sieve
that way it would be feasible to factor integers up to 100 digits
now all you need is to implement the Quadratic sieve https://en.wikipedia.org/wiki/Quadratic_sieve
that way it would be feasible to factor integers up to 100 digits
- Oct 18, 2024 11:16
- Forum: General
- Topic: Anyone using 16GB arrays and passing them around between functions?
- Replies: 15
- Views: 1522
Re: Anyone using 16GB arrays and passing them around between functions?
hi dodicat your program shows more than the available RAM, looks like it includes the virtual memory 241208.078783035 MB availabe at this instance. Installed Physical Memory (RAM) 128 GB Total Physical Memory 128 GB Available Physical Memory 120 GB Total Virtual Memory 147 GB Available Virtual Memor...
- Sep 20, 2024 17:26
- Forum: Beginners
- Topic: prime factorization(Solved)
- Replies: 3
- Views: 1357
Re: prime factorization
there is libflint but it's a very complex library also there is libpari it's complex as well but to get a working example is not too complicated although it's not FB like but rather it's like calling the pari/gp calculator from FB if you are interested you can get the 64-bit dll plus a rough example...
- Sep 17, 2024 16:34
- Forum: Community Discussion
- Topic: FreeBASIC file paths
- Replies: 26
- Views: 5027
Re: FreeBASIC file paths
Berkeley
if you are so unhappy with the way FreeBAsic does things then why bother using it?
use a language that you like and be happy instead of complaining all the time
if you are so unhappy with the way FreeBAsic does things then why bother using it?
use a language that you like and be happy instead of complaining all the time
- Sep 17, 2024 14:36
- Forum: Community Discussion
- Topic: FreeBASIC 'destroys' Rust
- Replies: 12
- Views: 2404
Re: FreeBASIC 'destroys' Rust
I started to watch it but I couldn't stand his constant foul language
- Sep 15, 2024 6:39
- Forum: Windows
- Topic: In-Memory Dialogs
- Replies: 78
- Views: 81556
- Sep 12, 2024 21:42
- Forum: General
- Topic: unexpected order of evaluation
- Replies: 37
- Views: 4576
Re: unexpected order of evaluation
dodicat, is it like the following ?
Code: Select all
Dim As Double eps, Pi, x, y
x = 3
y = 1
Pi = x
eps = 1e-15
While (x > eps)
x = x * y / ((y + 1) * 4)
y += 2
Pi += x / y
Wend
Print Pi
Sleep
- Sep 12, 2024 16:30
- Forum: General
- Topic: unexpected order of evaluation
- Replies: 37
- Views: 4576
Re: unexpected order of evaluation
@dodicat
what algorithm for Pi did you use ?
what algorithm for Pi did you use ?
- Sep 11, 2024 21:41
- Forum: General
- Topic: unexpected order of evaluation
- Replies: 37
- Views: 4576
Re: unexpected order of evaluation
dodicat I was curious about the performance of your program vs mine, so I ran your program with Print pie(10002) your time 4.68 seconds mine was 4.53 seconds with -O2 but with -O3 the time was 2.73 seconds however if I change the compile command in your program to #cmdline "-arch native -gen cl...