在dll中实现串的拼接
我作的代码:
#include "regist.h"
#include <string.h>
#include <windows.h>
_declspec(dllexport) bool JhaRdecrypt(char * a, char* b)
{
if(strlen(b)>(strlen(a)+19))
{
// strcat(b, "HHFNETYY");
strcat(b, a);
strcat(b, "2096-12-30");
return true;
}
return false;
}编译的rigist.dll在pb下调用不好用:
pb调用的代码
申请外部函数
function boolean jhardecrypt(string a,ref string b ) library "regist.dll" alias for JhaRdecrypt;
然后调用出现调用错误
怎么写dll我的错在哪???????
谢谢了