On Tue, Jan 7, 2020 at 10:20 AM ToddAndMargo via perl6-users
mailto:perl6-users@perl.org>> wrote:
On 2020-01-06 22:54, ToddAndMargo via perl6-users wrote:
> Hi All,
>
> What am I doing wrong here?
>
> > my int16 $x = 0xABCD;
> -21555
>
> > say $x.bas
my int16 $x = 0xABCD;
my uint16 $y = $x;
say $x.base(16);
say $y.base(16)
-5433
ABCD
If you just want to coerce to uint16
(my uint16 $ = $x)
say (my uint16 $ = $x).base(16)
On Tue, Jan 7, 2020 at 10:20 AM ToddAndMargo via perl6-users <
perl6-users@p
On 2020-01-06 22:54, ToddAndMargo via perl6-users wrote:
Hi All,
What am I doing wrong here?
> my int16 $x = 0xABCD;
-21555
> say $x.base(16);
-5433
> my uint16 $y = $x.uint16;
No such method 'uint16' for invocant of type 'Int'
in block at line 1
Many thanks,
-T
Came up with a wor
On 2020-01-07 00:11, WFB wrote:
Hi Todd,
I think RegQueryValueExW is not the best choice for this to get the job
done. Back in the $work with a Windows box, I looked around and found
the RegGetValueW method:
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew
Th
Hi Todd,
I think RegQueryValueExW is not the best choice for this to get the job
done. Back in the $work with a Windows box, I looked around and found the
RegGetValueW method:
https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew
This method accept a type. No need to us