Jump to content
Excelsior Forums
Sign in to follow this  
Sidnei

Can not resolve Synbol foo(Argument[]) in class

Recommended Posts

foo = new xFunction("Lingd80","int LSsetPointerLng (int,double*,int*)");

 

   int pLINGO= 0;  

   double nrSaldos[] = new double[2];

      nrSaldos[0] = 0.00;

      nrSaldos[1] = 22.00;

   int nPointersNow[] = new int[1];

       Argument[] args = new Argument[3];

       args[0] = Argument.create("int",  new Integer(pLINGO));

       args[1] = Argument.create("double*", nrSaldos);

       args[2] = Argument.create("int*", nPointersNow);

       Pointer arg_nrSaldos = (Pointer) Argument.create("double*", nrSaldos);

       Pointer arg_nPointerNow = (Pointer) Argument.create("int*", nPointersNow);

I Try those above , but the error is the same

       //nError = Lingo.LSsetPointerLng( pLINGO, nrSaldos, nPointersNow);

       nError = ( (Integer) foo(args)).intValue();

       

        nError = ( (Integer) foo(args[0] , args[1],args[2])).intValue();

         nError = ( (Integer) foo(new Argument(pLINGO) , arg_nrSaldos,arg_nPointerNow)).intValue();

What is wrong whit my code ?

Some budy cam help me ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×