C++Builder如下语法怎么转DELPHI

kisshexuxia 2015-10-21 11:19:46
函数原型:int WINAPI SUNSON_LoadMasterKey (unsigned char ucMKeyId,
unsigned char ucMKeyLen,
unsigned char *NewMasterKey,
unsigned char *ReturnInfo)

BYTE error[1024];
memset(error,0,1024);
int MKId=0;
int MKLen=16;
int nMKLen = MKLen*2;
char *pValue = new char[nMKLen];
unsigned char *ucHexMK = new unsigned char[nMKLen];
strncpy(pValue,EditNewMK->Text.t_str(), nMKLen);
for(int i=0; i<nMKLen; i++)
ucHexMK[i] = pValue[i];
delete pValue;
pValue = NULL;
flag = SUNSON_LoadMasterKey(MKId,MKLen,ucHexMK,error);
...全文
80 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧