Jump to content
Excelsior Forums
Sign in to follow this  
mustang80

Problem with boolean GxInitialize() method

Recommended Posts

Hi,

I have a problem with my method

the type of this method is ?boolean GxInitialize()

my java code looks that:

import com.excelsior.xFunction.*;

public class Gx02Tester

{

? ? ?public static void main(String[] args) throws xFunctionException

? ? ?{

? ? ? ? ? ?xFunction b = new xFunction("Gx02","int GxInitialize()");

? ? ?}

}

but I dont know how I should ?call this method.

This method returns false or true

Any help will be appreciate

Share this post


Link to post
Share on other sites

Hi,

I know how it should be done:

public class Gx02Tester 
{ 
     public static void main(String[] args) throws xFunctionException 
     { 
         xFunction init = new xFunction("Gx02","int GxInitialize()"); 
         xFunction fan = new xFunction("Gx02","int GxFan(int)");
         init.invoke();
         fan.invoke(new Argument(0));
     } 
}

In Gx02.dll this methods are declared:

bool GxInitialize();

bool GxFan(bool fanOn);

but it works for 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  

×