Search found 216 matches

by Everything
Tue Dec 13, 2022 5:17 pm
Forum: Windows
Topic: ListIcon questions
Replies: 0
Views: 339

ListIcon questions

Solved Icons doesn't show Solved How to display (not display) an icon for an item by condition? Is there a simple implementation so that when there is no icon there is no indentation (emptiness in place of the icon)? How to correctly display icons with high dpi? (if we load a 16x16 image, it will m...
by Everything
Sat Dec 10, 2022 6:42 pm
Forum: Windows
Topic: Any tools for PB AT&T?
Replies: 0
Views: 280

Any tools for PB AT&T?

Is there any tool to convert fasm to PB AT&T ? The standard syntax causes compilation errors. For example with default compiler we use !mov rax, [gs: qword 60h] With PB_Backend_C ! __asm__ __volatile__ ("movq %gs:0x60, %rax") ; error ! __asm__ __volatile__ ("movq %%gs:0x60, %%rax&...
by Everything
Sat Dec 10, 2022 2:25 pm
Forum: Windows
Topic: Unable to get IFileSystemBindData
Replies: 0
Views: 251

Unable to get IFileSystemBindData

Please tell me how to get a pointer to the IFileSystemBindData interface. I'm clearly doing something wrong. EnableExplicit Global Desktop.IShellFolder Global *PIDL Global TestFile$ = "X:\New.txt" Procedure do() Protected strBuf.s = Space(#MAX_PATH) Protected w32fd.WIN32_FIND_DATA #GetFile...
by Everything
Mon Apr 04, 2022 1:00 pm
Forum: Tricks 'n' Tips
Topic: XXH32 Module (xxHash)
Replies: 21
Views: 11253

Re: XXH32 Module (xxHash)

Unfortunately, I haven't seen a C implementation yet. At the moment I can offer libxxhash.dll (can be found also in msys64\mingw64 or inkscape distro) for testing the algorithm on Windows. Note that it was built with slightly different compiler flags than the xxhsum.exe utility from the official rep...
by Everything
Mon Apr 04, 2022 2:09 am
Forum: Tricks 'n' Tips
Topic: XXH32 Module (xxHash)
Replies: 21
Views: 11253

Re: XXH32 Module (xxHash)

How about XXH3 (SSE2)?
by Everything
Thu Mar 31, 2022 1:12 pm
Forum: Windows
Topic: Replace internal function
Replies: 10
Views: 1487

Re: Replace internal function

Isn't this Ok? Yes it's ok. It's just a "local" solution for one particular function. Note I want replace internal call to wcslen with call to my inline asm code (not only when using PeekS, but also for any other functions calling wcslen within itself) The override method will replace not...
by Everything
Thu Mar 24, 2022 5:56 pm
Forum: Coding Questions
Topic: How to get text from a resource into a string (PB4-Win XP)
Replies: 15
Views: 2864

Re: How to get text from a resource into a string (PB4-Win XP)

I ran into this unexpectedly on Windows 10.
The resource is in UTF8, but the Unicode is not read correctly, trying to follow the PellesC manual (L "string" format) leads to error:
String literal expected (found: L"STRING")
by Everything
Wed Mar 23, 2022 12:54 am
Forum: Windows
Topic: Replace internal function
Replies: 10
Views: 1487

Re: Replace internal function

did not check how this is implemented, maybe just importing functions with the same name From docs: If two function libraries contain the same function name then the linker will take the function from the library that is linked first. The override method will replace not only the function calls you...
by Everything
Tue Mar 22, 2022 3:49 pm
Forum: Windows
Topic: Replace internal function
Replies: 10
Views: 1487

Re: Replace internal function

jacdelad , thank you. Maybe I wasn't clear about what I wanted. a$="abc" b$ = PeekS(@a$, -1) PeekS internally call wcslen here. I want replace internal call to wcslen with call to my inline asm code (not only when using PeekS, but also for any other functions calling wcslen within itself)...
by Everything
Tue Mar 22, 2022 4:11 am
Forum: Windows
Topic: Replace internal function
Replies: 10
Views: 1487

Replace internal function

Some PB functions call the standard functions from msvcrt.dll (wcslen, wcsstr, memset etc). I know that it's possible to replace them with an external library (for example asmlib can do this). Is it possible to do this without a static library, by reassigning the internal msvcrt function to the inli...
by Everything
Sat Apr 17, 2021 6:59 pm
Forum: Announcement
Topic: Forums update
Replies: 125
Views: 66083

Re: Forums update

Andre wrote: Fri Apr 16, 2021 10:43 pmI support this wish for the separate 'Active topics' link, as I'm using it very often too :D
+1
by Everything
Fri Mar 12, 2021 4:12 pm
Forum: Feature Requests and Wishlists
Topic: Time to change the default graphics subsystem to DX11
Replies: 1
Views: 856

Re: Time to change the default graphics subsystem to DX11

And maybe also you will think about cario lib?
  • It's cross platform
  • It's hardware accelerated
  • It may be compiled with all\any features as single lib\dll
  • It can have builtin Freetype2! That's what I miss all the time I've use PB (especially on windows as native fonts hinting is horrible)
by Everything
Wed Mar 10, 2021 9:28 pm
Forum: Coding Questions
Topic: [NOT] Optimizing compiler
Replies: 38
Views: 4370

Re: [NOT] Optimizing compiler

infratec wrote:better placed in feature requests
I agree.

PB is almost perfect and I want to remove the word "almost".
If you are satisfied no matter what, shame on you :|

Image
by Everything
Wed Mar 10, 2021 7:58 pm
Forum: Coding Questions
Topic: [NOT] Optimizing compiler
Replies: 38
Views: 4370

Re: [NOT] Optimizing compiler

No one doubts that PB generate perfect code :D
Although with default PB (PelleC) optimization enabled, this should not be the case.
by Everything
Wed Mar 10, 2021 7:34 pm
Forum: Coding Questions
Topic: [NOT] Optimizing compiler
Replies: 38
Views: 4370

Re: [NOT] Optimizing compiler

There are hints of LLVM coming That would be awesome! There is no 'slow' example :) Pelle C output have less performance than OC output (GCC, Clang/LLVM etc) that's fact period :!: When everything already optimized good compiler is kind of bonus to do a little bit even more. If people tells you rep...