Search found 1770 matches

by Keya
Fri Jun 11, 2021 7:06 pm
Forum: Coding Questions
Topic: Why does response to Select Case repeat 2 - 3 times?
Replies: 6
Views: 609

Re: Why does response to Select Case repeat 2 - 3 times?

Probably because you're responding to EVERY event that's sent to that window/gadget, which isn't just the "clicked on/activated" message. Case #PB_Event_Gadget ;Check for gadget event Select EventGadget() You want to go a level deeper and check what TYPE of message it is - EventType()
by Keya
Fri Jun 11, 2021 10:38 am
Forum: Feature Requests and Wishlists
Topic: OGG audio sample loader for use with OpenAL library
Replies: 2
Views: 1647

Re: OGG audio sample loader for use with OpenAL library

It seems you're already aware of this and just not happy with it for some reason, but just in case you're not, Purebasic already has an OGG decoder, see UseOGGSoundDecoder()
by Keya
Wed Jun 09, 2021 8:35 pm
Forum: Coding Questions
Topic: Convert all special chars in a text into regular letters...
Replies: 26
Views: 6268

Re: Convert all special chars in a text into regular letters...

Andre I don't think inline assembly is currently supported in the PB6 Alpha? (I think Fred's trying to get the C part working first!) It seems all "! code" lines are currently sent directly to the C compiler, as opposed to being interpreted as asm. Though you still can use gcc's inline ass...
by Keya
Wed Jun 09, 2021 1:54 am
Forum: Tricks 'n' Tips
Topic: Rounding to the next power of two
Replies: 5
Views: 1139

Re: Rounding to the next power of two

I think you can also use the Intel assembly instruction "bsr" (bitscan reverse) for this
by Keya
Wed Jun 09, 2021 1:30 am
Forum: Announcement
Topic: PureBasic 6.00 Alpha 5 released !
Replies: 245
Views: 51925

Re: PureBasic 6.00 Alpha 1 released !

@Keya Will it also use "fast strings" out of the box for ultra speed? I would guess no, because C uses null-terminated "C strings" - the same as Purebasic has always used. There have been examples posted though of "fast strings" (eg storing the length before the string...
by Keya
Tue Jun 08, 2021 2:20 pm
Forum: Announcement
Topic: PureBasic 6.00 Alpha 5 released !
Replies: 245
Views: 51925

Re: PureBasic 6.00 Alpha 1 released !

If you're curious about all the optimisations that our source code will now be subject to with the new C backend, thanks to one of the best optimising compilers in the world - GCC - please check out this wikipedia page: https://en.wikipedia.org/wiki/Optimizing_compiler This also FREES Fred from havi...
by Keya
Tue Jun 08, 2021 8:32 am
Forum: Announcement
Topic: PureBasic 6.00 Alpha 5 released !
Replies: 245
Views: 51925

Re: PureBasic 6.00 Alpha 1 released !

marcoagpinto wrote: Tue Jun 08, 2021 6:32 am Also add a two-pass compiler to optimise the code, such as:
x+10+5+5
would become compiled as:
x+20
That would be automatically handled by the gcc C compiler.
That's one of the real beauties of the new C backend - so many optimisations from one of the smartest compilers on the planet
by Keya
Sun Jun 06, 2021 10:13 pm
Forum: Coding Questions
Topic: Include Binary Crashing Program
Replies: 27
Views: 2107

Re: Include Binary Crashing Program

FourthStone wrote: Sun Jun 06, 2021 9:06 pm Process being trashed: Program:Win32/Wacapew.C!ml
A quick google of that suggests it's malware? So are you infected with malware, or is this another false positive by poorly written antivirus signatures? or... ?
by Keya
Sat Jun 05, 2021 5:33 pm
Forum: Coding Questions
Topic: [solution provided by mk-soft] gadget hidden or not?
Replies: 7
Views: 549

Re: gadget hidden or not?

in Windows there is the IsWindowVisible(hWnd) API function, I'm not sure if it works with controls though
by Keya
Sat Jun 05, 2021 4:47 pm
Forum: Feature Requests and Wishlists
Topic: AVIF support
Replies: 1
Views: 1596

Re: AVIF support

"Sisvel, a Luxembourg-based company, has formed a patent pool, and are selling a patent license for AV1 . The pool was announced in early 2019,[157] but a list of claimed patents was first published on 10 March 2020.[158] This list contains over 1050 patents " https://en.wikipedia.org/wiki...
by Keya
Sat Jun 05, 2021 2:01 pm
Forum: 3D Programming
Topic: LearnOpenGL - translated examples for PureBasic - modern openGL
Replies: 3
Views: 2757

Re: LearnOpenGL - translated examples for PureBasic - modern openGL

that sounds amazing!!! :) any chance of some screenshots?
by Keya
Sat Jun 05, 2021 10:23 am
Forum: Coding Questions
Topic: Include Binary Crashing Program
Replies: 27
Views: 2107

Re: Include Binary Crashing Program

* Haven't tried purifier or other debugger Please do. Purifier is pretty good at finding memory corruption issues. If no luck with that, a debugger will show you where it's crashing ... eg. is it crashing within the code of your .exe? or within a Windows DLL during an API call? or...? My system is ...
by Keya
Sat Jun 05, 2021 9:50 am
Forum: Coding Questions
Topic: Include Binary Crashing Program
Replies: 27
Views: 2107

Re: Include Binary Crashing Program

Have you tried running it with Debugger enabled?
Have you tried running it with Purifier enabled?
Also try running it in a debugger like Ollydbg to find out where it's crashing
by Keya
Fri Jun 04, 2021 9:37 am
Forum: Coding Questions
Topic: [Resolved] Enlarge image without distorting it
Replies: 14
Views: 1203

Re: Enlarge image without distorting it

possibly try enlarging by 2.0 or 4.0 etc first, then reduce back to 1.2 ?
or you might need to look at the various upscaling algorithms
by Keya
Thu Jun 03, 2021 5:52 pm
Forum: Announcement
Topic: Forums update
Replies: 124
Views: 33776

Re: Forums update

I don't like how the "New Posts" link operates - it seems to 'reset' itself every 24hrs, so sometimes you check for New Posts and it shows zero posts