Thread: WIN32::API on .net
Results 1 to 3 of 3
Related
-
Perl Win32::ODBC Kerridge Forum: Databases
Replies: 9
-
04-05-2005, 11:34 AM #1
WIN32::API on .net
When I run this perl code from command line it works
my $in = pack("a150", "A445326990330502736465X161900Q7011150Z07607");
my $res = Win32::API->Import('XYZ32', 'xyz',PPP,N);
my $out = pack("a150", "\0") or die $!;
$res = xyz($in, $out, 0);
print "res = $res\n";
print "out = $out\n";
When I call this small program from .net / C#
it fails
It seems like xyz need to write to $out but fails to access $out memory
We have set full permission and both program run
under user administrator
-
04-05-2005, 12:05 PM #2
Hi, welcome to the forums.
This is a tricky one. Do you get any error codes/message when the program fails? anything in the system log?If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
04-05-2005, 12:12 PM #3
First, i have tried by convertint the perl with perl2bat
and run the perl as xyz.bat - works
called from C# - no error
Than tried PerlNet, convert it to xyz.exe - works
called from C# got error message that problem to
access $out memory (the xyz.dll is writing back to this var space) . It seems some security issue with .net
We tried to configure all with full permission but didnt helped
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum