Search found 6 matches

by kparadine
Fri May 24, 2024 2:39 pm
Forum: Linux
Topic: Hard dependency on Wayland?
Replies: 0
Views: 1754

Hard dependency on Wayland?

It appears there is a hard dependency on Wayland. I can get the gtk2 version of Purebasic to work without it - is there a way to compile things that wouldn't result in the Wayland dependency, as the gtk2 version isn't dependent?

There are no missing linked libraries - the issue is the assumption of ...
by kparadine
Fri Apr 09, 2021 1:00 am
Forum: Coding Questions
Topic: Convert a #PB_Ascii or #PB_UTF8 string to UCS2
Replies: 4
Views: 1177

Re: Convert a #PB_Ascii or #PB_UTF8 string to UCS2

skywalk wrote:PokeS() using #PB_Unicode.
Thank you, that made things very straightforward.
by kparadine
Thu Apr 08, 2021 9:09 pm
Forum: Coding Questions
Topic: Convert a #PB_Ascii or #PB_UTF8 string to UCS2
Replies: 4
Views: 1177

Convert a #PB_Ascii or #PB_UTF8 string to UCS2

Is there an easy way to do this string conversion?

I have found Ascii() and UTF8() but not something to go the other way.
by kparadine
Thu Nov 19, 2020 4:06 am
Forum: Tricks 'n' Tips
Topic: EnableUnsigned()
Replies: 9
Views: 5146

Re: EnableUnsigned()

This is awfully cool stuff. It's too bad that it requires you to use unsigned (long/int/quad) in sections and then disable it to call API functions, because it appears to change ALL (long/int/quad) in the program into unsigned integers.

It would still be nicer to have them as accessible types at ...
by kparadine
Mon Sep 24, 2018 3:50 am
Forum: Windows
Topic: WinApi calls for certain console commands not present
Replies: 2
Views: 2228

Re: WinApi calls for certain console commands not present

Those calls seem to be undocumented functions considering http://blogs.microsoft.co.il/pavely/2009/07/23/changing-console-fonts/ . You should be able to add those undocumented functions with IMPORTC or by using prototypes

So i don't see a bug related to PB in any way here.

Well, two things. One ...
by kparadine
Sun Sep 23, 2018 3:23 am
Forum: Windows
Topic: WinApi calls for certain console commands not present
Replies: 2
Views: 2228

WinApi calls for certain console commands not present

Purebasic 5.62 x64

POLINK: error: Unresolved external symbol 'GetNumberOfConsoleFonts'
POLINK: error: Unresolved external symbol 'SetConsoleFont'

----

Can I just hack these kernel32.dll calls in myself somehow?

Thank you.