ok now, i already include the header file for existing API and it can call the function....hmm, if not burdern you, can you guys give me a sample code for initialization code.....below is my fragment of c code....my boss want me call initialise function in existing API with not occur callback process - its called blocking mode
Code:
#include <jni.h>
#include <stdio.h>
#include "TestMMMReaderHighLevelAPI3.h"
#include "MMMReaderHighLevelAPI.h"
JNIEXPORT jlong JNICALL
Java_TestMMMReaderHighLevelAPI3_MMMReader_1Initialise_1L3(JNIEnv * env,
jobject obj)
{
{
MMMReaderHighLevelAPI scanner = new MMMReaderHighLevelAPI();
try {
scanner.MMMReader_Initialise(null, null, null, null, false, false,
false);
//INESERT TEST CODE
printf("success");
scanner.Close();
}
catch(Exception e) {
//put code here to catch any test code errors
printf("try again");
}
}
catch(Exception e) {
//Put code here to catch errors instantiating a Scanner driver
}
};
and argument for method MMMReader_Initialise is like below:
Code:
MMM_READER_HIGH_LEVEL_API MMMReaderErrorCode
MMMReader_Initialise(MMMReaderHLDataCallback aDataCallback,
MMMReaderEventCallback aEventCallback,
MMMReaderErrorCallback aErrorCallback,
MMMReaderCertificateCallback aCertCallback,
bool aProcessMessages, bool aProcessInputMessages,
void *aParam);
can u guys help me to build a initialize code for me...bcoz it is my first time involve in integration environment...i hope u guys can help me...