NativeCall and C String question

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, When Native call gives me back an address and byte count to a C string, how do I turn that into a Raku string? Address = 5636171 0x56004B byte count = 14 (UTF16) two of these are presumed to be chr(0) Actual string is `KVM-W7` Many thanks, -T -- ~

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 18:47, ToddAndMargo via perl6-users wrote: On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I

Re: My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 17:39, ToddAndMargo via perl6-users wrote: Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are f

My Windows Modules

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, I have been working feverishly on Windows modules to support a program I have been tasked to write for a customer. And after all the wonderful help everyone has given me, I better show what I have done with it! So far there are four of them. I have completed the windows popup module.

Re: My pop ups for windows module

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-26 23:15, WFB wrote: Hi Todd, I refactored your code a bit to make it a bit more readable IMHO. Thinking on publish it on modules.raku.org if you are not interested to do so. Hi Bill, I did not think I would like enum, but wound up liking it anyway. my

Re: My Native Call notes

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 14:56, ToddAndMargo via perl6-users wrote: Hi All, This is my keeper on Native Call. -T Raku: Native Call notes: Really poor reference: https://docs.raku.org/language/nativecall 1) Kernel32.dll call variables with a "p" in them are "C" pointers.    LSTATUS RegOpenKeyExW(

My Native Call notes

2019-12-29 Thread ToddAndMargo via perl6-users
Hi All, This is my keeper on Native Call. -T Raku: Native Call notes: Really poor reference: https://docs.raku.org/language/nativecall 1) Kernel32.dll call variables with a "p" in them are "C" pointers. LSTATUS RegOpenKeyExW( HKEYhKey, LPCWSTR lpSubKey, DWORD

Re: null and native call question

2019-12-29 Thread ToddAndMargo via perl6-users
On 2019-12-29 05:46, WFB wrote: 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. Hi Bill, I have a major rewrite underway for several of my modules. Hopefully I will post them he

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