int MyGZIP(char *strbuf,char *GZIPbuf,DWORD len)
{
CA2GZIP gzip(strbuf,len);
// AfxMessageBox((char *)gzip.pgzip);
/*
memset(&tmp,0,sizeof(tmp));
sprintf(tmp,"%s", (char*)gzip.pgzip);
AfxMessageBox(tmp);
*/
memcpy(GZIPbuf,(char*)gzip.pgzip,gzip.Length);
len=gzip.Length;
return 1; } int MyUnGZIP(char *GZIPbuf,char *strbuf,DWORD length)
{
LPGZIP pgzip=(LPGZIP)malloc(length);
CGZIP2A myunzip(pgzip,length); memcpy(strbuf,myunzip.psz,myunzip.Length);
length= myunzip.Length;
free(pgzip);
return 1; }
{
CA2GZIP gzip(strbuf,len);
// AfxMessageBox((char *)gzip.pgzip);
/*
memset(&tmp,0,sizeof(tmp));
sprintf(tmp,"%s", (char*)gzip.pgzip);
AfxMessageBox(tmp);
*/
memcpy(GZIPbuf,(char*)gzip.pgzip,gzip.Length);
len=gzip.Length;
return 1; } int MyUnGZIP(char *GZIPbuf,char *strbuf,DWORD length)
{
LPGZIP pgzip=(LPGZIP)malloc(length);
CGZIP2A myunzip(pgzip,length); memcpy(strbuf,myunzip.psz,myunzip.Length);
length= myunzip.Length;
free(pgzip);
return 1; }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货