Search found 947 matches

by chi
Sat Apr 08, 2023 1:05 pm
Forum: Bugs - Windows
Topic: Controls messing with the window z-order
Replies: 2
Views: 3066

Re: Controls messing with the window z-order

I fail to understand the issue here. I had to watch the gif 3 times until i remembered ;) But it looks like a Windows things, right ? I guess it's only a Windows problem... But you can also reproduce the "bug" with a single monitor and with Performance Options "Animate windows when m...
by chi
Fri Mar 24, 2023 7:47 am
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
Replies: 9
Views: 1112

Re: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)

Fred wrote: Thu Mar 23, 2023 3:40 pmNice !
Thanks! (and thanks for pointing out the possible setjmp/longjmp problem in your PM)
by chi
Thu Mar 23, 2023 3:12 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 13178

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

@ccode_new, @gltianya
You can use RuntimeSwitcher to create a custom msvcrt.lib (x86+x64) and switch between CRT and UCRT.
by chi
Thu Mar 23, 2023 3:03 pm
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
Replies: 9
Views: 1112

Re: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)

Fred wrote: Thu Mar 23, 2023 2:27 pm It's probably only using the MS linker, not VC++.
No, I'm just replacing the original msvcrt.lib (PB\PureLibraries\Windows\Libraries) with a custom one (e.g. VS 2022 libcmt.lib+libvcruntime.lib+libucrt.lib = _MT_17_msvcrt.lib).
by chi
Thu Mar 23, 2023 2:43 pm
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
Replies: 9
Views: 1112

Re: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)

I'm not sure if I understand this correctly: with the RuntimeSwitcher I can compile PB programmes with Visual Studio? And thus possibly use newer modern UI elements? :shock: :D With RuntimeSwitcher you can use static libraries created with VS 2015+ in PB. The idea was born here (raylib) . But even ...
by chi
Wed Mar 22, 2023 12:31 pm
Forum: Applications - Feedback and Discussion
Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
Replies: 9
Views: 1112

[IDE Tool] RuntimeSwitcher (Windows only, Experimental!)

http://www.Lunamedia.at/rts/RuntimeSwitcher.png The main purpose of 'RuntimeSwitcher' is to easily switch between PB's C Runtime (CRT) and the newer Universal C Runtime (UCRT). In addition you can also build your own UCRT (+STL +CLR) using Visual Studio 2015 or later, allowing you to use more recen...
by chi
Tue Mar 21, 2023 7:09 pm
Forum: 3D Programming
Topic: Demo - Morphing
Replies: 32
Views: 3302

Re: Demo - Morphing

Very nice! Now add some beat detection :lol:
by chi
Tue Mar 21, 2023 6:54 pm
Forum: Coding Questions
Topic: Browser as app will not be child in a container
Replies: 8
Views: 408

Re: Browser as app will not be child in a container

You missed the 'e' in Profile and the dash between 1 and Microsoft is not Ascii 45 (but 8211)

Code: Select all

"PureBasic Forums - English - Index page - Profile 1 - Microsoft​ Edge"
by chi
Wed Feb 15, 2023 12:20 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 13178

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

Thanks very much! The replacement of "msvcrt.lib" was successful. I can now create a static library using "MS Visual Studio" and it works. Great, I'm glad to hear that! I wasn't 100% sure if everything would work on another computer... Can I tell PureBasic to use a different msv...
by chi
Tue Feb 14, 2023 9:56 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
Replies: 42
Views: 13178

Re: [Module] raylib-purebasic (Windows/Linux/macOS)

How to statically build the "raylib" library on Windows with PureBasic compatibility? (.lib / .a) I'm pretty sure you can't! PB's C runtime on Windows is very old and Raylib needs some of the newer features... Fortunately, you can do it the other way around. I created a custom msvcrt.lib ...
by chi
Thu Jan 05, 2023 5:25 pm
Forum: Coding Questions
Topic: FrameGadget backcolor problem ...
Replies: 13
Views: 867

Re: FrameGadget backcolor problem ...

SetWindowColor does not set the background brush of the window and, in case of the FrameGadget, draws with the default window color instead. ;-------------------------------------------------------------------------------------------------- ;- TEST PROGRAM FRAMEGADGET ;------------------------------...
by chi
Tue Dec 27, 2022 9:04 pm
Forum: General Discussion
Topic: Why #pragma pack(1)???
Replies: 6
Views: 454

Re: Why #pragma pack(1)???

...forces me to add Align #PB_Structure_AlignC to every structure I create... I'm a neofitos on this matter :? Which is the purpose of doing that? Aligned memory access is faster than unaligned... I hope it stays that way. I use a lot of structures for communication. I also use overlays of structur...
by chi
Tue Dec 27, 2022 8:05 pm
Forum: General Discussion
Topic: Why #pragma pack(1)???
Replies: 6
Views: 454

Re: Why #pragma pack(1)???

Maybe for compatibility with Visual Basic <= 5. Only later VB6 used the C standard with user types. Ok, maybe. But this downward "compatibility" forces me to add Align #PB_Structure_AlignC to every structure I create, just (in case) to get proper padding. Internal structures are already p...
by chi
Tue Dec 27, 2022 6:28 pm
Forum: General Discussion
Topic: Why #pragma pack(1)???
Replies: 6
Views: 454

Why #pragma pack(1)???

Why does PB align structures to a 1 byte boundary by default? There must be a good reason for that, right?!
by chi
Fri Nov 25, 2022 8:44 am
Forum: Coding Questions
Topic: Compile to Linux executable from Windows IDE
Replies: 4
Views: 329

Re: Compile to Linux executable from Windows IDE

If you don't have or want a dedicated Linux machine, just create a virtual machine with VMware or VirtualBox and compile from there. The benefit is, as infratec mentioned, that you can also test your program right away.