in reply to [SOLVED] Win32::GuiTest::SendMessage/AllocateVirtualMemory and TCHAR**
But you were almost there:
# print "SendMessage status: ", my $ret = SendMessage( $hwnd, NPPM_G +ETOPENFILENAMES, $tcharpp, 0); print "SendMessage status: ", my $ret = SendMessage( $hwnd, NPPM_G +ETOPENFILENAMES, $tcharpp->{ptr}, $nFiles);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Win32::GuiTest::SendMessage/AllocateVirtualMemory and TCHAR**
by pryrt (Abbot) on Sep 23, 2019 at 19:01 UTC | |
correction: On reread, I saw the $nFiles also. With that, it works! Thanks! It's annoying that I missed that in this SSCCE version... At one point, I know I had that right. Unfortunately, even with that fix, I still get all NULLs:
| [reply] [d/l] |
by stevieb (Canon) on Sep 23, 2019 at 19:32 UTC | |
It's such a wonderful sensation of enlightenment and finalization when someone (in this case vr) comes along and points out such a (seemingly) simple thing :D | [reply] |
by pryrt (Abbot) on Sep 23, 2019 at 20:05 UTC | |
It's such a wonderful sensation of enlightenment and finalization when someone (in this case vr) comes along and points out such a (seemingly) simple thing ... especially when I'd started that TCHAR** debug in July, and only visited it intermittently, since I was never making headway on it. Most of the time, when I think I have a SoPW, making the SSCCE rubber duck-s it without the post ever going through. But since even my SSCCE that I pruned and tweaked over the weekend didn't solve it, I finally had to post today. (The other thing missing from my original was the pack string of Q vs L -- that conditional wasn't there in my original, so even if I had the ->{ptr}, $nFiles, the original wouldn't have worked because half the pointer was truncated.) Thanks again, vr, for the extra set of eyes. | [reply] [d/l] |
by stevieb (Canon) on Sep 23, 2019 at 20:42 UTC |