A
Anitha Namachivayam via JavaKB.com
Hi,
How to pass handle of JFrame window to VC++ in JNI?
I used FindWindow :
JNIEXPORT void JNICALL
Java_T_Tmanager_init1(JNIEnv *env, jclass cla,jstring str)
{
const char* cw = env->GetStringUTFChars(str, 0);
HWND hwnd = FindWindow(NULL,cw);
env->ReleaseStringUTFChars(str, cw);
InitTwain(hwnd);
}
When i tried to create dll file, it is showing the following error :
TmanagerImpl1.obj : error LNK2001 : unresolved external symbol
_imp_FindWindowA@8
sample.dll: fatal error LNK1120 : 1 unresolved externals
Please help me in finding this error...
Thanks,
Sri
How to pass handle of JFrame window to VC++ in JNI?
I used FindWindow :
JNIEXPORT void JNICALL
Java_T_Tmanager_init1(JNIEnv *env, jclass cla,jstring str)
{
const char* cw = env->GetStringUTFChars(str, 0);
HWND hwnd = FindWindow(NULL,cw);
env->ReleaseStringUTFChars(str, cw);
InitTwain(hwnd);
}
When i tried to create dll file, it is showing the following error :
TmanagerImpl1.obj : error LNK2001 : unresolved external symbol
_imp_FindWindowA@8
sample.dll: fatal error LNK1120 : 1 unresolved externals
Please help me in finding this error...
Thanks,
Sri