例如:声明加密方法与解密方法 umstools.dll
方法一:选中对应窗体右键点击出现菜单 Edit Source 打开编辑窗体,找到 【global】语句然后换一行
进行下面语句函数的声明
type prototypes
function long umsEncrypt(ref string pingan_request, ref string encode64) library "umstools.dll" Alias For "umsEncrypt;Ansi"
function long umsDecrypt(ref string pingan_request, ref string pingan_response) library "umstools.dll" Alias For "umsDecrypt;Ansi"
end prototypes
最后还需要把 umstools.dll 放入C:\window\system32 下面
然后就可以直接调用 dll 对应方法
umstools.dll 动态库下载资源:http://download.csdn.net/download/lisanjun520/10211321