我这个DLL接口在VB中应该如何调用呢?

MadGodRokie 2004-05-08 03:32:18
我用VC写了一个DLL,其中一个接口如下:
extern "C" _declspec(dllexport) int fn1(char* Out, char* In1, int In1Len,char* In2,int In2Len);

在VB中应该如何声明和调用呢?
谢谢各位。
...全文
55 3 点赞 打赏 收藏 举报
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
yateli 2004-05-08
Public Declare Function fnl Lib "dllname" (Out As any, In1 As any, Byval In1Len As Long, In2 As any, Byval In2Len As Long) As Long
  • 打赏
  • 举报
回复
of123 2004-05-08
Public Declare Function fnl Lib "dllname" (Byval Out As String, Byval In1 As String, Byval In1Len As Long, Byval In2 As String, Byval In2Len As Long) As Long

or

Public Declare Function fnl Lib "dllname" (Out() As Byte, In1() As Byte, Byval In1Len As Long, In2() As Byte, Byval In2Len As Long) As Long
  • 打赏
  • 举报
回复
飘零风 2004-05-08
Public Declare Function fnl Lib "dllname" (Out As String, In1 As String, Byval In1Len As Long, In2 As String, Byval In2Len As Long) As Long

这样应该就可以了吧?
  • 打赏
  • 举报
回复
相关推荐
发帖
API
加入

1468

社区成员

VB API
申请成为版主
帖子事件
创建了帖子
2004-05-08 03:32
社区公告
暂无公告