delphi 调用vc写的dll中的有关问题

delphi 调用vc写的dll中的问题
已知vc中的dll的头文件部分如下

_declspec(dllexport) void Sina_GetUidByNickname(char* strContent,char* strUid);

vc中的意思是通过你给一个 用户昵称,然后得到UID,函数是无返回值的,


我在delphi中静态引用dll

type
  private
    { Private declarations }
  public
    { Public declarations }
  end;
function Sina_GetUidByNickname(strContent,strUid:string):integer;cdecl;external 'XXX.dll';

implementation




按钮的过程中我写、

var
  uid;
begin
  Sina_GetUidByNickname('昵称',Pchar(uid));
  ShowMessage(uid);
end;


------解决方案--------------------
祝贺了。。。。