| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1858 人关注过本帖
标题:[求助] 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
快速回复:[求助] pb调用外部函数?
数据加载中...
 
   



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

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