Page 1 of 1

KK_Window() woes

Posted: Thu Jul 11, 2024 11:24 am
by rootuid
I'm attempting to run some code found on the internet on a MacBook Air M2 with Purebasic 6.11 LTS.

The code was written in 2023 for PureBasic 5.73 LTS

Code: Select all

InitSound()
UsePNGImageDecoder()
Global yoff=40

Global xmax=640-16,ymax=128+12,ymin=52+4

KK_Window(640,480)
......
When attempting to compile, PureBasic complains:

Code: Select all

KK_Window() is not a function array, list, map or macro.
I'm guessing this KK_Window() method was depreciated but I couldn't find anything on google. Or perhaps it's a windows only function()?

Re: KK_Window() woes

Posted: Thu Jul 11, 2024 12:22 pm
by SMaag
I'm guessing this KK_Window() method was depreciated but I couldn't find anything on google. Or perhaps it's a windows only function()?
No it is a user defined Procedure.
In your case it is not existing!

Re: KK_Window() woes

Posted: Thu Jul 11, 2024 12:39 pm
by rootuid
Now that you mention it, I can see the procedure in a compiled library but I don't see where it's imported.

thanks for your help!

Re: KK_Window() woes

Posted: Thu Jul 11, 2024 2:23 pm
by jacdelad
Where did you find the code?

Re: KK_Window() woes

Posted: Thu Jul 11, 2024 3:07 pm
by Kiffi
looks like this is just a simplification of the OpenWindow() call
KrazyK wrote:[...]
The custom (Windows only) userlibraries are:
KK_Window: Used because i'm lazy at typing openwindow.....blah, blah, blah
[...]