Thanks, Philip. I have tried it out but when I call the DLL, I get a
"Runtime Exception" Error returned from the script. The code I am using is
as follows:
---BEGIN---
use Win32::API;
$library = "KrugerCall.dll";
$functionname = "FanSelFnName";
@argumenttypes = ("P","I","I","I","I","I","I","I","I","I","I","I","P");
$returntype = "P";
$lpPoint = pack("III", 1, 2,3); # store options...
@arguments =
('FDA','1.5','200','1','2.5','300','600','900','1','0','40','0',$lpPoint);
$func = new Win32::API($library, $functionname, \@argumenttypes,
$returntype); // This is okay...
$return = $func->Call(@arguments); // This causes the runtime exception -
but partially executes...
print $return;
---END---
"KrugerCall.dll" is a DLL which expects the number of arguments (above) to
be sent to it, and then throws some more data back again. Any ideas why I am
getting this error?
Thanks,
Trevor.
----- Original Message -----
From: Philip Newton <[EMAIL PROTECTED]>
To: 'Trevor Walker' <[EMAIL PROTECTED]>
Sent: Thursday, May 11, 2000 2:37 PM
Subject: Re: Calling Win32 DLLs
> Trevor Walker wrote:
> > OK... I have innstalled Win32API using PPM and will try it out.. does
> > anyone have any experience/examples of using this to call DLL
> > functions?
>
> Did you look at the included documentation? It's got a couple of examples
of
> how to use it.
>
> Cheers,
> Philip
>
>
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]