I have a Windows DLL that I want to call from Perl. The prototype for the exported function is:
Int __stdcall func(const char*, int, int, int, double, double, void**); The perl code - my $dll_path = "../stage/test_dll.dll"; my $dll_func = new Win32::API($dll_path, 'func', 'PIIIDDP', 'I'); my $data = "test something here"; my $pResult = 0; my $rc = $ dll_func ->Call($data, 0, 0, 9, 0.6, 0.3, $pResult); An error message pops up saying that the memory can't be written. Maybe I can't use P to represent void**? If so, how to call this function? Thanks!
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs