标题:[求助] pb调用外部函数?
只看楼主
neimeng
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-3-18
 问题点数:0 回复次数:1 
[求助] pb调用外部函数?

vb环境下的代码:
Public Declare Function base64_decode Lib "base64.dll" (ByVal strSrc As String, ByVal iLen As Integer, ByRef strDec As Byte) As Integer
注:strSrc为要编码的字符串
ilen为字符串长度
strDec是编码后的字符(VB中使用的是byte数组)
我在pb中这样定义的:
Function integer base64_decode(String strSrc,Integer iLen,ref char strDec) Library "base64.dll"
为什么程序在调用base64_decode函数时无反映?

请问:在pb中应如何改写? pb9.0
请高手帮忙解决一下!!!
搜索更多相关主题的帖子: 函数 Integer strSrc strDec decode 
2007-03-18 19:34
mgc
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-3-20
得分:0 
strDec是编码后的字符应该是个指针类输出,所以:
Function integer base64_decode(String strSrc, Integer iLen, Ref String strDec) Library "base64.dll"
2007-03-20 16:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-125014-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.755842 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved