当前位置: 首页 > news >正文

网站制作代理加盟.net 网站模板下载地址

网站制作代理加盟,.net 网站模板下载地址,徐州企业免费建站,wordpress获取分类标题为了后续的方便操作zip文件#xff0c; 将所有的操作封装成了一个动态库了。 /*** \description 从压缩包文件中解压出指定的文件到指定的目录.* \author sunsz* \date 2023/09/09**/ LIBZIP_API int UnpackFile(const char* password, char zipfilename[], char filename_…     为了后续的方便操作zip文件 将所有的操作封装成了一个动态库了。 /*** \description 从压缩包文件中解压出指定的文件到指定的目录.* \author sunsz* \date 2023/09/09**/ LIBZIP_API int UnpackFile(const char* password, char zipfilename[], char filename_to_extract[], char filepath_to_extract[]);/*** \description .从压缩包文件中读出指定的文件到buffer中.* * \author sunsz* \date 2023/09/09 * */ LIBZIP_API int UnpackBuffer(const char* password, char zipfilename[],char filenameinzip[], char *buffer,unsigned int *buffer_size);/*** \description 获取指定文件的大小.* * \author sunsz* \date 2023/09/09 * */ LIBZIP_API int UnpackBufferSize(const char* password, char zipfilename[], char filenameinzip[]);/*** \description 从压缩包中获取文件列表.* * \author sunsz* \date 2023/09/09 * */ LIBZIP_API int UnpackFileList(const char* password, char zipfilename[], char filename_list[256][256]);/*** \description 将指定的文件写入到压缩包文件中.* opt_overwrite 0 重新新建文件 opt_overwrite 2 以追加的方式添加到压缩包不存在则创建 * \author sunsz* \date 2023/09/09 * */ LIBZIP_API int PackFile(const char* password,char m_zipname[],char filein[],int opt_overwrite);/*** \description 将内容以指定的文件名称存入到压缩包文件中.* opt_overwrite 0 重新新建文件 opt_overwrite 2 以追加的方式添加到压缩包不存在则创建* \author sunsz* \date 2023/09/09**/ LIBZIP_API int PackBuffer(const char* password, char m_zipname[], char filenameinzip[], char* buffer, unsigned int buffer_size, int opt_overwrite); 示例代码: //依赖头文件 #include windows.h #include stdio.h #include stdlib.h #include string.h #include conio.h #include exception//定义函数指针//typedef int(WINAPI*S_dll_callback_demo1)(unsigned char*,unsigned char*); typedef int(WINAPI*ZipRead)(const char*, char*, char*, char*); typedef int(WINAPI*ZipReadFileList)(const char*, char*, char**); typedef int(WINAPI*ZipWrite)(const char*, char*, char*,int); typedef int(WINAPI* ZipWriteBuffter)(const char* , char *, char*, char* , unsigned int , int ); typedef int(WINAPI* ZipReadBuffer)(const char* , char *, char *, char *, unsigned int* ); typedef int(WINAPI* ZipReadBufferSize)(const char* , char *, char *); //定义API函数变量 static ZipWrite zipWriteFile; static ZipRead zipReadFile; static ZipReadFileList readList; static ZipWriteBuffter zipWriteBuffter; static ZipReadBuffer zipReadBuffter; static ZipReadBufferSize zipReadBuffterSize; int main(){int i 0;int j 0;int malloclen 0;unsigned int len 0;char* dataout NULL;char* passwd 123456;int filenum 0;char filelist[256][256] { 0x00 };char data[] hello zip!;char path[] .//libzip.dll;HMODULE hDll LoadLibrary(path);if (hDll ! NULL) {zipWriteFile (ZipWrite)GetProcAddress(hDll, PackFile);zipReadFile (ZipRead)GetProcAddress(hDll, UnpackFile);readList (ZipReadFileList)GetProcAddress(hDll, UnpackFileList);zipWriteBuffter (ZipWriteBuffter)GetProcAddress(hDll, PackBuffer);zipReadBuffter (ZipReadBuffer)GetProcAddress(hDll, UnpackBuffer);zipReadBuffterSize (ZipReadBufferSize)GetProcAddress(hDll, UnpackBufferSize);/*if (zipWriteFile) {zipWriteFile(passwd, 2.zip, D:\\D-Pro\\Test\\test_zip\\test_zip\\test.S19,0);}else {printf(\nZipWriteFile\n);}if (zipReadFile) {zipReadFile(passwd, 2.zip, test.S19,.//test//11111.s19);}else {printf(\nZipReadFile\n);}*/if (zipWriteBuffter) {zipWriteBuffter(passwd, 3.zip, 11112.txt, data, sizeof(data), 2);}else {printf(\nzipWriteBuffter \n);}if (zipReadBuffter) {if (zipReadBuffterSize) {malloclen zipReadBuffterSize(passwd, 3.zip, 11112.txt);if (malloclen) {dataout (char*)malloc(malloclen 8);zipReadBuffter(passwd, 3.zip, 11112.txt, dataout, len);printf(%s\n, dataout);if (dataout ! NULL) {free(dataout);dataout NULL;}}}}else {printf(\nzipWriteBuffter \n);}}else{printf(\n加载失败!\n);}printf(\n请按任意键结束!\n);_getch();return 0; } 示例测试:
http://www.huolong8.cn/news/203409/

相关文章:

  • 如何分析网站建设方案wordpress修改
  • 全网网站建设维护软件开发图片
  • 电子商务网站开发的历程什么是建设型的网站
  • 宜昌网站制作公司排名灯塔建设网站
  • 作文网站哪个平台好优秀产品设计案例分析
  • 网站建设属于广告费么贵阳市城乡建设局网站
  • 南宁网站建设报价旅游网站建设的摘要
  • wordpress怎么建立网站吗网站开发背景论文
  • 做期货应关注什么网站科技网站哪个好
  • 设计网站推荐p健身器械网站建设案例
  • 网站建设亿玛酷知名腾讯云wordpress密码
  • 中国反钓鱼网站联盟创建一个网页要钱吗
  • 网站logo图标网站开发 用什么框架
  • 长春手机模板建站世界500强企业查询入口
  • 广州市住房和城乡建设部网站免费推广网站建设
  • 国外网站 工信部备案网站建设中的安全问题
  • 北京建设信源网站 怎么打不开海洋承德网站建设公司
  • 大岭山网站如何在网络上做广告
  • 网站优化技巧教务系统网站怎么做
  • 购物中心网站模板白银市建设局网站王浩
  • 如何做好网站建设的关键游戏制作流程
  • wordpress搭建下载站点江苏seo网络
  • 四川省查询建设证书的网站wordpress情侣模板下载
  • 北京专做粮油米面的配送网站小程序模板设计
  • 临夏做网站做外贸网站推广什么比较好
  • 根据百度地图做网站wordpress数据库配置文件路径
  • 怎么安装免费wordpress主题青岛seo网站关键词优化
  • 猴王水果竞猜网站建设360如何做网站优化
  • 南宁 网站推广郑州快速建站公司
  • 买网站平台名字吗网站黑链检测