编程论坛's Archiver

neimeng 发表于 2007-3-18 19:34

[求助] pb调用外部函数?

<BR>vb环境下的代码:<BR>Public Declare Function base64_decode Lib "base64.dll" (ByVal strSrc As String, ByVal iLen As Integer, ByRef strDec As Byte) As Integer<BR>注:strSrc为要编码的字符串<BR>   ilen为字符串长度<BR>   strDec是编码后的字符(VB中使用的是byte数组)<BR>我在pb中这样定义的:<BR>Function integer base64_decode(String strSrc,Integer iLen,ref char strDec) Library "base64.dll"<BR>为什么程序在调用base64_decode函数时无反映?<BR><BR>请问:在pb中应如何改写? pb9.0<BR>请高手帮忙解决一下!!!

mgc 发表于 2007-3-20 16:32

strDec是编码后的字符应该是个指针类输出,所以:<BR>Function integer base64_decode(String strSrc, Integer iLen, Ref String strDec) Library "base64.dll"<BR>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.