您的位置:程序门 -> vb -> 基础类



不好意思,还是vb调用dll问题,这应该怎么转换呢?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


不好意思,还是vb调用dll问题,这应该怎么转换呢?
发表于:2007-04-11 10:37:34 楼主
c#中是这样写的
[dllimport( "sdtapi.dll ")]
public   static   extern   int   sdt_startfindidcard(int   iportid,   ref   int   puciin,   int   iifopen);
我给写的vb6.0中
private   declare   function   sdt_startfindidcard   lib   "sdtapi.dll "   (byval   iportid   as   long,   byval   puciin   as   long,   byval   iifopen   as   long)   as   long
是不是哪个地方有写错了呢~~请大家指教我一下~很急,谢谢
发表于:2007-04-11 11:12:411楼 得分:0
在调用的时候
c#是
rtntemp   =   sdt_startfindidcard(edziportid,   ref   puciin,   edziifopen);
vb是
rtntemp   =   sdt_startfindidcard(edziportid,   puciin,   edziifopen)
c#就好用,vb就不好用,该怎么写呢??请大家帮帮忙吧~
发表于:2007-04-11 12:28:182楼 得分:0
private   declare   function   sdt_startfindidcard   lib   "sdtapi.dll "   (byval   iportid   as   integer,   byref   puciin   as   integer,   byval   iifopen   as   integer)   as   integer


快速检索

最新资讯
热门点击