Jawin的问题
public class test {public static void main(String[] args) throws Exception {
String a="D:/pic/沈阳市东滨河路热闹路由北向南/20110714091931/20110714091931_a.jpg";
FuncPtr PicKonw = null;
byte[] result=null;
try {
PicKonw = new FuncPtr("C:/Windows/System32/Release/Release/PicKonwDll.DLL", "PicKonw");
NakedByteStream nbs = new NakedByteStream();
LittleEndianOutputStream leos = new LittleEndianOutputStream(nbs);
leos.writeBytes(a);
result = PicKonw.invoke(?????,12,nbs,null,ReturnFlags.CHECK_NONE);
LittleEndianInputStream leis = new LittleEndianInputStream(new ByteArrayInputStream(result));
// for(int y = 0;y<result.length;y++){
System.out.println(leis.readLine());
// }
} catch (COMException e){
e.printStackTrace();
} finally {
if (PicKonw != null){
try {
PicKonw.close();
} catch (COMException e) {
e.printStackTrace();
}
}
}
}
}
其中DLL里的方面是
int PicKonw(LPCTSTR fileName,LPTSTR hphm,LPTSTR hpys,LPTSTR csys,LPTSTR x,LPTSTR y,LPTSTR swidth,LPTSTR shight, int charNum,int zhixin)
请问在问号处应该怎么设这这个参数,请高手赐教。 --------------------编程问答--------------------
public class test {
public static void main(String[] args) throws Exception {
String a="D:/pic/沈阳市东滨河路热闹路由北向南/20110714091931/20110714091931_a.jpg";
FuncPtr PicKonw = null;
byte[] result=null;
try {
PicKonw = new FuncPtr("C:/Windows/System32/Release/Release/PicKonwDll.DLL", "PicKonw");
NakedByteStream nbs = new NakedByteStream();
LittleEndianOutputStream leos = new LittleEndianOutputStream(nbs);
leos.writeBytes(a);
result = PicKonw.invoke(?????,12,nbs,null,ReturnFlags.CHECK_NONE);
LittleEndianInputStream leis = new LittleEndianInputStream(new ByteArrayInputStream(result));
// for(int y = 0;y<result.length;y++){
System.out.println(leis.readLine());
// }
} catch (COMException e){
e.printStackTrace();
} finally {
if (PicKonw != null){
try {
PicKonw.close();
} catch (COMException e) {
e.printStackTrace();
}
}
}
}
}
这样看会好些 顺便帮顶一下!
补充:Java , Java SE