Hi Mr. Jeff,
I successfully compiled your cpp code of example no 1.
But when i try to compile example no. 2 i get
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
jtwain.cpp:
Error E2356 jtwain.cpp 218: Type mismatch in redeclaration of '__stdcall
Java_net_javajeff_jtwain_JTwain_acquire(JNIEnv_ *,_jclass *)'
Error E2344 jtwain.h 16: Earlier declaration of '__stdcall
Java_net_javajeff_jtwain_JTwain_acquire(JNIEnv_ *,_jclass *)'
*** 2 errors in Compile ***
what am i doing wrong ? |