Perl: the Markov chain saw | |
PerlMonks |
Win32::API to import functionby ptk (Initiate) |
on Feb 28, 2005 at 19:05 UTC ( [id://435152]=perlquestion: print w/replies, xml ) | Need Help?? |
ptk has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, Using the Win32::API lib, I want to import the following C function: which is found in the "Rscw32.dll". To import it, I have the following script: When I use it, I call the function as follow: I'm expecting a return value of '17' but when I print the "$sReturn", I got '33685510'. If I do the following: print "My Return is : $sReturn\n"; the "$sReturn" value is set to '13107' and this value can (and probably will) change if I reboot the PC. Is it possible to handle the USHORT correctly with the Win32::API lib? Any idea? Thanks, ptk Note: Even if the return value is incorrect, the function seems to work! Edit by BazB: add code tags.
Back to
Seekers of Perl Wisdom
|
|