55 users online (0 members and 55 guests)  


  Results 1 to 3 of 3

Related

  1. Perl Win32::ODBC Kerridge    Forum: Databases
    Replies: 9
  1. #1
    negvon's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2005
    Posts
    2

    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

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    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 the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    negvon's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2005
    Posts
    2
    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



Tags for this Thread