Hi Community,
I hope you can help me!
I have wrote a ClientExtension!
It copy a File on the Client (This works).
Now i want to test the communication from the Client to the
Server!
I have one Class Prepare:
public class Prepare extends ULCProxy{
public IDispatcher createDispatcher(){
return new PrepareDispatcher();
}
public void copyDriver(String source){
invokeUI("copyDriver",new Object[]{source});
}
public void testcomm(String msg){
System.out.println("in comm test drin");
System.out.println(msg);
}
}
I don´t know if i realy need the Dispatcher....
and one class IUPrepare
public class UIPrepare extends UIProxy {
public void copyDriver(String source){
File in = new File(source);
try{
StringBuffer path = new StringBuffer(getJavaHome());
path.append("\\lib\\ext\\jtwain.dll");
System.out.println("Pfad Java: "+path);
System.out.println("Pfad source: "+source);
File out = new File(path.toString());
FileInputStream fis = new FileInputStream(in);
FileOutputStream fos = new FileOutputStream(out);
byte[] buf = new byte[1024];
int i = 0;
while((i=fis.read(buf))!=-1) {
fos.write(buf, 0, i);
}
fis.close();
fos.close();
//This is the line where nothing happens
invokeULC("testcomm", new Object[]{new
String("test")});
System.loadLibrary("jtwain");
}catch(Exception e){
e.getMessage();
}
}
}
I have no idea why it don´t work!
Thx for your help
Florian
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer