Hello,
I'm attempting to use a C# method from my Perl script but am receiving a
return code of 127 and "unknown error" for $!.
My code is as follows:
-----------------
use Win32::API;
sub CallCompanyImport {
my ($self, $API) = @_;
Win32::API::Type->typedef( 'string', 'unsigned char');
Win32::API::Type->typedef( 'SqlConnection', 'unsigned char');
Win32::API::Type->typedef( 'SqlTransaction', 'unsigned char');
Win32::API::Type->typedef( 'SqlInt32', 'int');
$function = Win32::API->new("C:\\bvRoot\\Bin\\Company.Import.dll", "VOID
Stage(SqlConnection conn, SqlTransaction tran, int InstitutionID, int
SourceID, string StagingDatabase, string InputFile, SqlInt32
ParentLogID)");
if(not defined $function) {
die "Can't import API $API from Company.Import: $!\n";
}
-----------------
Can anyone tell me what is wrong with this?
Thanks,
Jason
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs