Pointer Errors

Just starting out? Need help? Post your questions and find answers here.
User avatar
blueb
Addict
Addict
Posts: 1118
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Pointer Errors

Post by blueb »

Some users have been displaying code like this

Code: Select all

;==================== 
;  PB 6.20 Beta 3 (x64)
GetCount(*cProps.l)
;==================
I'm also using the latest beta, but I keep getting error messages saying: "Native types can't be used with pointers"

While I completely understand, I fail see why some users can use native types with pointers, and some cannot.

Is there a switch somewhere that escapes me?
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
mk-soft
Always Here
Always Here
Posts: 6315
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Pointer Errors

Post by mk-soft »

This is old code and the native types must be removed. The code then works as before.
It also makes no sense to specify these, as it is a pointer.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
miso
Enthusiast
Enthusiast
Posts: 491
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Pointer Errors

Post by miso »

Some users have been displaying code like this
Older PB versions allowed this, so you might find these things in legacy code.
User avatar
blueb
Addict
Addict
Posts: 1118
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Pointer Errors

Post by blueb »

mk-soft wrote: Thu Jan 30, 2025 2:52 pm This is old code and the native types must be removed. The code then works as before.
It also makes no sense to specify these, as it is a pointer.
I agree 100%.. it's just that the last 3 or 4 times I've downloaded 'sample' code, it contains these older pointers, but the poster has indicated that they are on PB 6.20 betas, and I can't figure out why they don't seem to get these error messages.

Thanks for confirming what I thought.
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Pointer Errors

Post by Fred »

It's a new check from 6.20 beta 4 as it was missing.
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: Pointer Errors

Post by PBJim »

Fred wrote: Thu Jan 30, 2025 5:31 pm It's a new check from 6.20 beta 4 as it was missing.
This check has been included in PB since I started working with it. I'm still on PB 6.00 Windows.

Image
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Pointer Errors

Post by Fred »

Yes, it's been added for interface as well in 6.20b4.
Post Reply