in reply to Re^4: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
in thread Win32::API Memory Exception with GetCommandLine() (which returns a static string)
then the batch file runs without error and $string no longer contains the additional trailing space - ie Win32::API and Inline are in complete agreement.use Win32::API; $function = new Win32::API("kernel32", "GetCommandLine", '', 'P'); $string = $function->Call(); print "string[".length($string)."] = '$string'\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by BrowserUk (Patriarch) on Jul 06, 2007 at 11:29 UTC | |
by Wyrdweaver (Beadle) on Jul 07, 2007 at 18:15 UTC |