The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Java Tech: Acquire Images with TWAIN and SANE, Part 2
Subject:  Problem compiling
Date:  2006-10-02 00:30:25
From:  emarraro


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 ?

 Feed java.net RSS Feeds