Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $obj = Win32::API->new("dll","Function", [P, I], I);
The problem is, I don't know how to set up the array for the call. I've tried:
$arr=pack("d",1) . pack("d",1.5), pack("d",3);
and
@arr=(pack("d3",1,1.5,3))
whatever I try causes perl.exe to crash (ActivePerl 5.6.1). Any ideas on how the call should be made would be appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Calling win32:api dll with pointer to array
by tye (Sage) on Jan 14, 2002 at 19:36 UTC | |
by dhorne (Initiate) on Jan 15, 2002 at 14:00 UTC | |
|
Re: Calling win32:api dll with pointer to array
by larryk (Friar) on Jan 14, 2002 at 18:51 UTC | |
by tye (Sage) on Jan 14, 2002 at 19:41 UTC |