JAVA如何调用vb 写的 dll
我使用jawin去调用dll..测试jawin自带的例子成功,但是调用我自己的就不行.
vb 写的 dll
方法签名:
VBScript code:
Private Declare Function GetHeadXh Lib "MSControlctl.dll" (ByVal tmpXxdm As String, ByRef tmpHeadXh As String, ByRef tmpJxmc As String) As Boolean
我的JAVA源码:
Java code:
package com.gam.cl;
import org.jawin.FuncPtr;
import org.jawin.ReturnFlags;
import org.jawin.io.LittleEndianOutputStream;
import org.jawin.io.NakedByteStream;
public class yz {
public static void main(String[] args) {
try {
FuncPtr msgBox = new FuncPtr("MSControlctl.DLL", "GetHeadXh");
NakedByteStream nbs = new NakedByteStream();
LittleEndianOutputStream leos = new LittleEndianOutputStream(nbs);
leos.writeStringUnicode("701");
byte[] b=msgBox.invoke("G:GG:", 16, nbs, null, ReturnFlags.CHECK_FALSE);
//这个地方的G:GG:应该怎么写呢?或者其它参数.
System.out.println("aa");
System.out.println(b);
leos.close();
} catch (Exception e) {
e.printStackTrace
相关问答:
一个JSP页面接收其他页面提交过来的FORM表单,但是要求只接收当前站点及其子站点提交过来的FORM表单,其他站点提交过来的表单不接收,这个怎么设置?
用过滤器
filter
将当前站点及其子站点放一个目录
然 ......
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现?
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......
请我用FCK上传文件,在本地的windows机上测试可以,但部署到linux服务器上就上传不了文件,上传文件时一直卡在那里。望各位大虾指点,谢谢!
路过,帮你顶一下。。。。。。。。。。。。。。
上传文件的路径问题, ......
现在有个xml文件是<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......