//c++部分。其中最后一个参数是回调函数
typedef int (CALLBACK *FuncTotalDoneTp)(unsigned long nTotal, unsigned long nDone);
CallDllFunction(CString strDllPath,
char *strDevInfoBuf, unsigned long nDevInfoLen,
char *strSendBuf, unsigned long nSendLen,
char **pStrRecvBuf, unsigned long *pRecvLen,
FuncTotalDoneTp pFuncTotalDone)
typedef int (CALLBACK *FuncTotalDoneTp)(unsigned long nTotal, unsigned long nDone);
CallDllFunction(CString strDllPath,
char *strDevInfoBuf, unsigned long nDevInfoLen,
char *strSendBuf, unsigned long nSendLen,
char **pStrRecvBuf, unsigned long *pRecvLen,
FuncTotalDoneTp pFuncTotalDone)
解决方案 »
- Exception in thread "main" java.lang.NullPointerException求大牛帮忙解决,30行小程序
- jacob问题,求教!!!!
- 帮忙看下
- java如何关闭一个在运行的exe文件
- 在linux下怎么用System.loadLibrary?
- 這個用swing怎麼寫阿 很急
- 高手请进:关于sequenceInputStream的问题
- IE不能显示用了swing 的APPLET??? 在线等~~~~~~~~`
- tomcat4.1.7的启动服务与连接oracle数据库的问题,请热烈讨论呀,好象总无人解答问题?
- 新手
- 不明白,为什么多个"/n"计算结果会不一样
- JXTA管道通告搜索问题求助
接口:public interface CallDllInterface {
public int CallDllFunction(String strDllPath其它参数);
}实现类:public class CallDllImpl implements CallDllInterface { public int CallDllFunction(String strDllPath其它参数) {
//回调函数的实现代码
return 返回值;
}}