import org.xvolks.jnative.JNative;
import org.xvolks.jnative.Type;
import org.xvolks.jnative.exceptions.NativeException;
public class DllPicture {
public static void main(String[] args) throws Exception {
try{
JNative jnative = new JNative("Vcode.dll","GetVcode");
jnative.setParameter(0, Type.STRING , "d:\\soft\\hardware\\nihao.jpg");
jnative.setRetVal(Type.STRING);
//System.out.println("----------------1");
jnative.invoke();
//System.out.println("----------------2");
String returnStr = jnative.getRetVal();
// 打印函数返回值
System.out.println(returnStr);
}catch(NativeException e){
e.printStackTrace();
}
}
}
下面下载文件的密码是:20050516
import org.xvolks.jnative.Type;
import org.xvolks.jnative.exceptions.NativeException;
public class DllPicture {
public static void main(String[] args) throws Exception {
try{
JNative jnative = new JNative("Vcode.dll","GetVcode");
jnative.setParameter(0, Type.STRING , "d:\\soft\\hardware\\nihao.jpg");
jnative.setRetVal(Type.STRING);
//System.out.println("----------------1");
jnative.invoke();
//System.out.println("----------------2");
String returnStr = jnative.getRetVal();
// 打印函数返回值
System.out.println(returnStr);
}catch(NativeException e){
e.printStackTrace();
}
}
}
下面下载文件的密码是:20050516