in reply to Re: Win32::api v0.75 issue importing DLL
in thread Win32::api v0.75 issue importing DLL
Hi,
I will check your suggestion. in the while below the codes.
I'm not using the XS for time and effort reason (I have no experience with it). Then if it is possible I would like to use the win32api.
the module code is the following:
while the perl script function is the following:package Prova; #use strict; use warnings; # Import Win32::API and require version 0.64 use Win32::API 0.73; use Exporter; BEGIN { use Exporter (); our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); $VERSION = 1.00; @ISA = qw(Exporter); @EXPORT = qw( &dummyFunc &dummyFunc2 ); } BEGIN { $funcImportResult = Win32::API->Import('LibreriaDiProva', 'int dum +myFunc()'); $funcImportResult = Win32::API->Import('LibreriaDiProva', 'int dum +myFunc2(int a )'); } END{ } 1;
#use lib qw(C:\UserData\JAZZ_FLOWS\DocToolForReport); use Prova; # To include Lessicum Client Universal interface wrapper $ciao = Prova::dummyFunc2(45); print $ciao;
|
---|
In Section
Seekers of Perl Wisdom