Re: null and native call question

2019-12-29 Thread ToddAndMargo via perl6-users
her today for evaluation. On the "null and native call question", Native Call translates a zero into a C NULL for you. My run and die issue was not lpReserved being sent a NULL incorrectly. The culprit was M$ and lpType. https://docs.microsoft.com/en-us/windows/win32/api/winreg

Re: null and native call question

2019-12-29 Thread WFB
Hi Todd, I am curious, what was the problem? I tried 0 in the first place and the script died. Though it has something to do with the 0 but obviously it has not. On Sun, 29 Dec 2019 at 10:31, ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > On 2019-12-29 00:28, ToddAndMargo via perl6

Re: null and native call question

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 00:28, ToddAndMargo via perl6-users wrote: On Fri, Dec 27, 2019 at 6:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote:     Hi All,     https://docs.perl6.org/language/nativecall    "As you may have predicted by now, a NULL pointer    is repr

Re: null and native call question

2019-12-29 Thread ToddAndMargo via perl6-users
On Fri, Dec 27, 2019 at 6:06 AM ToddAndMargo via perl6-users mailto:perl6-users@perl.org>> wrote: Hi All, https://docs.perl6.org/language/nativecall "As you may have predicted by now, a NULL pointer is represented by the type object of the struct type." http

Re: null and native call question

2019-12-27 Thread Brad Gilbert
A Null pointer is just a pointer that points to the address 0. So if you are dealing with it as an integer it will be 0. On Fri, Dec 27, 2019 at 6:06 AM ToddAndMargo via perl6-users < perl6-users@perl.org> wrote: > Hi All, > > https://docs.perl6.org/language/nativecall > > "As you may have

null and native call question

2019-12-27 Thread ToddAndMargo via perl6-users
Hi All, https://docs.perl6.org/language/nativecall "As you may have predicted by now, a NULL pointer is represented by the type object of the struct type." https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regqueryvalueexw C++ LSTATUS RegQueryValueExW(