Re: Calling Win32 DLLs

2000-05-11 Thread Philip Newton
Trevor Walker wrote: > Unfortunately, I do not have a C prototype for the DLL, or its source > code... because it is written in Delphi (!!). The call used > from Delphi is attached... it should give you an idea. I can't really tell as I haven't had any experiencing interfacing Delphi or Pascal w

Re: Calling Win32 DLLs

2000-05-11 Thread Philip Newton
Tom Rathborne wrote: > ---BEGIN--- > > use Win32::API; > $library = "KrugerCall.dll"; The docs imply you don't need the '.dll' ending. > $functionname = "FanSelFnName"; > @argumenttypes = > ("P","I","I","I","I","I","I","I","I","I","I","I","P"); > $returntype = "P"; > $lpPoint = pack("III", 1,

Re: Calling Win32 DLLs

2000-05-11 Thread Trevor Walker
>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? T

Re: Calling Win32 DLLs

2000-05-11 Thread Trevor Walker
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? Also, I did find the postings on comp.lang.perl - but from an archive. Thanks, Trevor. Trevor Walker wrote: > Is possible to call functions from Win32

Re: Calling Win32 DLLs

2000-05-11 Thread Philip Newton
Trevor Walker wrote: > Is possible to call functions from Win32 DLLs using Perl? I think Win32::API is what you need. I believe it's available from Jenda's repository at http://Jenda.McCann.cz/ . > I have looked everywhere, and can only find a vague thread > on comp.lang.perl relating to this.