求助版主
static inline bool SelfHash(unsigned char *hash) {charfile;
int n, handle;
MD5 md5;
byte buf;
GetModuleFileName(NULL, file, MAX_PATH);
if ((handle = open (file, O_RDONLY|O_BINARY)) == -1)
{
return false;
}
memset(hash,0,16);
for (;;)
{
n = read(handle,buf,sizeof(buf));
if (n<=0) break;
md5.update(buf,n);
}
md5.final(hash);
close(handle);
return true;
}
这段代码我想编译为Amxx,可是总是程序错误,请问怎么回事
页:
[1]