Search found 3332 matches

by srvaldez
Mar 27, 2024 23:37
Forum: Sources, Examples, Tips and Tricks
Topic: Rounding numbers
Replies: 45
Views: 4539

Re: Rounding numbers

about 5 years ago I made a bug report about the format function returning a zero with an exponent, sometime after, one of the FB developers contacted me about it, he wanted me to confirm that a certain format was correct but I am not a format expert, so I wrote a small VB6 program that would take a ...
by srvaldez
Mar 27, 2024 23:28
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 8
Views: 348

Re: Cairo animated spiral

now I wish that I had the witty humor of Pete from the QB64 forum
deltarho[1859], I wondered what the tee was about but never curious enough to find out
by srvaldez
Mar 27, 2024 13:25
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 8
Views: 348

Re: Cairo animated spiral

hello Makoto WATANABE :)
you are missing the cairo library, you can find an all-in-one cairo dll here https://github.com/preshing/cairo-windows/releases
just place the dll in the same location where your program resides
by srvaldez
Mar 25, 2024 19:46
Forum: Sources, Examples, Tips and Tricks
Topic: Rounding numbers
Replies: 45
Views: 4539

Re: Rounding numbers

@coderJeff I tried hhr suggestion and it seems that he is right, however, I don't know if there are cases where the suggested change would cause a problem. the format function is a complex beast and it seems that it's not finished, I know that it fails the tests with gcc-13.2 and up I have now built...
by srvaldez
Mar 21, 2024 20:32
Forum: General
Topic: screenres with a vertical scroll bar
Replies: 16
Views: 729

Re: screenres with a vertical scroll bar

jaskin wrote: Mar 21, 2024 18:59 I rather go to the source and use Win32 API calls directly.
then perhaps the examples in Charles Petzold book "Programming Windows" will be of interest https://archive.org/details/programming ... mpanion-cd
by srvaldez
Mar 21, 2024 15:34
Forum: General
Topic: screenres with a vertical scroll bar
Replies: 16
Views: 729

Re: screenres with a vertical scroll bar

hello jaskin
UEZ posted a Winn 11 console here viewtopic.php?p=301467#p301467
it might be of interest to you, also see Simple WinAPI GUI
dodicat, very nice demo 😁
by srvaldez
Mar 20, 2024 12:34
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

hi deltarho[1859]
interesting results, I take it that you were able to compile Encrypternet with clang?
by srvaldez
Mar 19, 2024 12:33
Forum: Community Discussion
Topic: Bugs
Replies: 115
Views: 20841

Re: Bugs

dodicat, the reason for your test puzzles me, surely you know that the variable k will be out of scope after calling test, but FB doesn't warn or complain however gcc-13.2 and up give this warning warning: storing the address of local variable 'K$1' in '*S$1' [-Wdangling-pointer=]
by srvaldez
Mar 19, 2024 12:23
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 227
Views: 20513

Re: Freebasic 1.20.0 Development

I concur with Lost Zergling
thank you coderJeff and fxm 😀
by srvaldez
Mar 17, 2024 16:47
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

👍😊
by srvaldez
Mar 17, 2024 15:48
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

for anyone on Windows wanting to try FB with clang, I suggest the following download and extract FreeBASIC-1.10.1-winlibs-gcc-9.3.0.7z from https://www.freebasic.net/forum/viewtopic.php?t=32498 delete fbc32.exe and fbc64.exe download the latest build of fbc windows from https://users.freebasic-porta...
by srvaldez
Mar 17, 2024 3:43
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

I have to make a correction ... the variables get ucased and a $1 is appended to the right ... for a shared variable only $ gets added for variables in the main module, $0 gets added in general, $n gets added to the variable name where n is the scope level, example #cmdline "-w all -arch native...
by srvaldez
Mar 16, 2024 11:19
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

deltarho[1859], here's my suggestion, use as little asm as possible #if __FB_ASM__ = "intel" function rdtsc naked cdecl() as ulong asm rdtsc ret end asm end function #else function rdtsc naked cdecl() as ulong asm "rdtsc \n ret" end function #endif ' *****************************...
by srvaldez
Mar 15, 2024 21:26
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

Hi deltarho[1859]
that function was only an example, it was intended as helper function if one wanted to go that route but the all-in-one looks better
by srvaldez
Mar 15, 2024 12:53
Forum: General
Topic: -gen clang
Replies: 56
Views: 2196

Re: -gen clang

deltarho[1859], I recommend that you use the basic version of the function HammingSeed64, inline asm in FB is like playing the Russian roulette, it's totally unreliable, there might be an exception if you strictly use gcc extended asm but I could never wrap my head around it's intricacies, example o...