Search found 3338 matches

by srvaldez
Apr 12, 2024 12:33
Forum: Libraries & Headers
Topic: gcc built_in functions
Replies: 6
Views: 388

Re: gcc built_in functions

hello deltarho[1859] :) I edited my opening post and included a link for the binaries, I also included the random functions the following works with clang but not with gcc unless you use gcc-9.3.0 from winlibs extern "C" declare function __builtin_ia32_rdrand16_step (byref as ushort) as ul...
by srvaldez
Apr 11, 2024 22:10
Forum: Libraries & Headers
Topic: gcc built_in functions
Replies: 6
Views: 388

gcc built_in functions

calling the gcc __builtin functions from FB don't necessarily work with all toolchains, one solution is to make a wrapper lib of your favorite __builtin functions checking for cpu features can be handy so that one doesn't have to resort to inline asm to compile with gcc do gcc -c -O2 built_in.c then...
by srvaldez
Apr 10, 2024 1:16
Forum: Libraries Questions
Topic: Cairo DLL creation
Replies: 16
Views: 903

Re: Cairo DLL creation

hello Roland Chastain
this looks promising, but the cairo version that's included in their build is version 1.16.0, it remains to be seen if it will build the latest version

Code: Select all

#include "cairo\Cairo.bi"

? *cairo_version_string
Sleep
by srvaldez
Apr 08, 2024 21:02
Forum: Libraries Questions
Topic: Cairo DLL creation
Replies: 16
Views: 903

Re: Cairo DLL creation

hello UEZ I tried building the dll but the source is only a build script, the script downloads the source for cairo, pixman, png and zlib the problem is that the Visual Studio project files are not included, it tries to download the project files from dev.com which seems to be extinct I tried to con...
by srvaldez
Apr 05, 2024 16:00
Forum: General
Topic: -gen clang
Replies: 64
Views: 3100

Re: -gen clang

hello deltarho[1859] :) the link to the binaries https://github.com/llvm/llvm-project/releases/tag/llvmorg-18.1.3 surprised me, the 64-bit clang.exe depends only on installed Windows dlls, it's size is 114 MB but it's pretty much standalone :D here's the list of dll dependencies for clang.exe 64-bit...
by srvaldez
Mar 29, 2024 20:58
Forum: Sources, Examples, Tips and Tricks
Topic: Rounding numbers
Replies: 48
Views: 4716

Re: Rounding numbers

hello coderJeff :) "Is the logic on line str_format.c:335 related to that?" I don't know, to me the format function is a mystery and counter intuitive, a function to be avoided I didn't know that the FB format function was modeled after vbdos, I just tried to rewrite the format helper in v...
by srvaldez
Mar 27, 2024 23:37
Forum: Sources, Examples, Tips and Tricks
Topic: Rounding numbers
Replies: 48
Views: 4716

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: 11
Views: 592

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: 11
Views: 592

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: 48
Views: 4716

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: 781

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: 781

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: 64
Views: 3100

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: 20946

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: 268
Views: 24042

Re: Freebasic 1.20.0 Development

I concur with Lost Zergling
thank you coderJeff and fxm 😀