Search found 943 matches
- Thu Mar 23, 2023 2:43 pm
- Forum: Applications - Feedback and Discussion
- Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
- Replies: 9
- Views: 973
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 ...
- Wed Mar 22, 2023 12:31 pm
- Forum: Applications - Feedback and Discussion
- Topic: [IDE Tool] RuntimeSwitcher (Windows only, Experimental!)
- Replies: 9
- Views: 973
[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...
- Tue Mar 21, 2023 7:09 pm
- Forum: 3D Programming
- Topic: Demo - Morphing
- Replies: 32
- Views: 2948
Re: Demo - Morphing
Very nice! Now add some beat detection
- Tue Mar 21, 2023 6:54 pm
- Forum: Coding Questions
- Topic: Browser as app will not be child in a container
- Replies: 8
- Views: 349
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"
- Wed Feb 15, 2023 12:20 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
- Replies: 42
- Views: 12856
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...
- Tue Feb 14, 2023 9:56 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Module] raylib-purebasic (Windows/Linux/macOS)
- Replies: 42
- Views: 12856
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 ...
- Thu Jan 05, 2023 5:25 pm
- Forum: Coding Questions
- Topic: FrameGadget backcolor problem ...
- Replies: 13
- Views: 859
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 ;------------------------------...
- Tue Dec 27, 2022 9:04 pm
- Forum: General Discussion
- Topic: Why #pragma pack(1)???
- Replies: 6
- Views: 451
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...
- Tue Dec 27, 2022 8:05 pm
- Forum: General Discussion
- Topic: Why #pragma pack(1)???
- Replies: 6
- Views: 451
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...
- Tue Dec 27, 2022 6:28 pm
- Forum: General Discussion
- Topic: Why #pragma pack(1)???
- Replies: 6
- Views: 451
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?!
- Fri Nov 25, 2022 8:44 am
- Forum: Coding Questions
- Topic: Compile to Linux executable from Windows IDE
- Replies: 4
- Views: 295
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.
- Sun Nov 20, 2022 9:48 pm
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6109
Re: AeroShot (PB-Edition)
With a bigger margin, it's the same. with a black or white background, it's the same. Displaying partially on a black and on a white background, it's the same. The part with the black/white background wasn't meant for you ;). This is how the program works in general. You take a 32bit screenshot of ...
- Sun Nov 20, 2022 11:30 am
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6109
Re: AeroShot (PB-Edition)
Thanks for testing, Denis! Don't forget that you' ll probably need to set a larger margin on Win11 to capture the entire shadow plane of the window. I set margin to 1. Trying with default margin, the shadow looks like that (completely black, no shadow): http://denislabarre.free.fr/Images/Aero_chi_1...
- Sun Nov 20, 2022 8:45 am
- Forum: Tricks 'n' Tips
- Topic: AeroShot (PB-Edition)
- Replies: 22
- Views: 6109
Re: AeroShot (PB-Edition)
Nice code, but it forces the target window to the foreground. Is there a way to do it without that and keep the Aero theme? Having big windows stealing the focus is not good. Hi BarryG, I'm afraid that's not possible with the current implementation. What exactly is the problem with forcing the wind...
- Sun Oct 09, 2022 4:45 pm
- Forum: Coding Questions
- Topic: IPAddressGadget() - How to tell if a field is blank?
- Replies: 3
- Views: 277
Re: IPAddressGadget() - How to tell if a field is blank?
With WinAPI you could check IPM_GETADDRESS or IPM_ISBLANK OpenWindow(0, 0, 0, 320, 200, "title", #PB_Window_SystemMenu|#PB_Window_ScreenCentered) ButtonGadget(0, 20, 20, 130, 23, "debug") IPAddressGadget(1, 20, 50, 130, 21) SetGadgetState(1, MakeIPAddress(127, 0, 0, 1)) Repeat ev...