I'm sorry:
I just try at first the instruction:
Saphira.INSTANCE.getGlobalVariableAddress('sfIsConnected').getInt(0)
But Eclipse did not recognise getGlobalVariableAddress as a member of
Saphira.INSTANCE (because Saphira.INSTANCE is not a NativeLibrary class)
So I had to use:
--
"NativeLibrary.getInstance("SF").getGlobalVariableAddress("sfIsConnected").getInt(0)"
But I think the function getInstance generates another instance of the
DLL. I just wanted to use the existing one (Saphira.INSTANCE). Just the
you proposed:
"Saphira.INSTANCE.getGlobalVariableAddress('sfIsConnected').getInt(0)"
As I said, I tried that but the compiler returns an error:
The method getGlobalVariableAddress(String) is undefined for the type
Saphira
Greetings,
jorgento
Timothy Wall schrieb:
On Jan 7, 2009, at 11:05 AM, Jorge Nieto-Madrid wrote:
void sfStartup(HANDLE hInst, int nCmdShow, int async);
void sfOnConnectFn(ConnectInterface cI); //Use a non-native
function pointer (callback)
void sfOnDisconnectFn(ConnectInterface cI); //Use a non-native
function pointer (callback)
//...More functions
}
What should I change so I can use the instruction you propose?
Saphira.INSTANCE.getGlobalVariableAddress('sfIsConnected').get
I don't understand what you're asking.