Jump to content
Excelsior Forums

ragerino

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About ragerino

  • Rank
    Newbie
  • Birthday 01/01/01
  1. hi all i'm trying to execute following api-call Definition: "long IFconnect(string userid, string password);" so i coded following lines (after some tries): public class ifAnmeldung { public static void main(String[] args) { try{ xFunction f=null; Argument arg1=null; Argument arg2=null; Object o=null; String rueck=null; //IFConnect f=new xFunction("6020API.dll", "int IFconnect(CSTRING,CSTRING)"); arg1 = new Argument("userid", Argument.CSTRING); arg2 = new Argument("pwd", Argument.CSTRING); o=new Object(); o=f.invoke(arg1,arg2); System.out.println("arg1:" + (String)arg1.getValue()); System.out.println("arg2:" + (String)arg2.getValue()); rueck=o.toString(); System.out.println(o.getClass()); System.out.println("IFconnect(CSTRING,CSTRING)=" + rueck); //IFerrno f=new xFunction("6020API.dll","int IFerrno ()"); o=new Object(); o=f.invoke(); rueck=o.toString(); System.out.println(o.getClass()); System.out.println("IFerrno ()=" + rueck); }catch(Exception e){ System.out.println("Error:" + e.toString()); } } } IFerrno allwas displays me errorcode 312 (wrong password) when using correct user and correct password, and errorcode 311(wrong user) when using wrong user and correct password. so it seems to me, that the passing through of the 2nd argument (arg2) is not correct. has anyone experienced the same problems, or has anyone a solution. thanx in advance, ragerino
×