Hello,
I'm trying to use the Win32:API module to access a DLL function with
this perl code :
$function = Win32::API->new( 'test.dll', 'int startSimulation(int
eRunMode)', );
$return = $function->Call(0);
print $return;
The C code for the function in the DLL is :
int startSimulation( int eRunMode ) {
return 0;
}
Which is very basic and the Symbol is exported with a .def file.
When I run the perl code, it crashes with a pointer to NULL memory access.
If anyone has a clue on why this is happening, or has a fix for it, I'd
be glad to know.
P.S. I also tried WJ patched version available at
http://www.xs4all.nl/~itsme/projects/perl/ with the same result.
Thanx
David
--
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs