当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 最近在看des,便试这用sdk编了个des加密程序,希望各位能够
 

 

    摘要:几个很不错的.net 相关的faq和例子代码的资源,推荐一下,如果大家已经知道了可不要笑话我 mike woodring´s .net sample page george shepherd´s windows forms faq? ingo rammer´s (thinktecture) .net remoting faq jeff key&ac......
 ·dev-cpp/mingw32 环境介绍(3)    »显示摘要«
    摘要:dev-cpp/mingw32 环境介绍(3) 上文回顾: 上文《dev-cpp/mingw32 环境介绍(2)》向各位介绍了一些有关dev-cpp的功能,其中有包的安装和一些小功能。希望能得到你的满意。这次,我们就继续介绍dev-cpp的其他功能。其实,说句实话。对于gnu的东西,我个人觉得还是提示符下用的舒服。我也不知道为什么。有很多功能,在提示符下很简单的打几个字符,可以完成像wind......


des加密源程序

最近在看des,便试这用sdk编了个des加密程序,希望各位能够多多指点,谢谢大家了

#include <commdlg.h> 【程序编程相关:用Delphi实现控制IE窗体的大小 —

#include "stdafx.h" 【推荐阅读:关于如何运用网络自己解决问题的参考(个人

static openfilename ofn; 【扩展信息:squid详细介绍1

#include <math.h>

static handle hfile1,hfile2;

char key[16][48];

char password[8];

bool initkey();

bool ipchange(tchar *source,char *l,char *r);

bool _ipchange(tchar *dest,char *l,char *r);

bool calclr(char *l,char *r,bool bcodeflag);

bool getbit(tchar *szsource,char *array);

bool f(tchar *l,tchar *r,int ncount);

bool sbox(char *e);

bool initofn(hwnd hwnd)            /*初始化ofn*/

{

 ofn.flags =0;

 ofn.hinstance =null;

 ofn.hwndowner =hwnd;

 ofn.lcustdata =0;

 ofn.lpfnhook =0;

 ofn.lpstrcustomfilter =null;

 ofn.lpstrdefext ="*";

 ofn.lpstrfile =null;

 ofn.lpstrfiletitle =null;

 ofn.lpstrfilter =text("所有文件(*.*)\0*.*\0\0");

 ofn.lpstrinitialdir =null;

 ofn.lpstrtitle =null;

 ofn.lptemplatename =null;

 ofn.lstructsize =sizeof(openfilename);

 ofn.nfileextension =0;

 ofn.nfileoffset =0;

 ofn.nfilterindex =0;

 ofn.nmaxcustfilter =0;

 ofn.nmaxfile =max_path;

 ofn.nmaxfiletitle=max_path;

 return 1;

}

bool openfiledialog(tchar *szfilename)        /*打开“打开”通用对话框*/

{

 szfilename[0]=´\0´;

 ofn.flags =ofn_hidereadonly;

 ofn.lpstrfile =szfilename;

 ofn.lpstrfiletitle =szfilename;

 return getopenfilename(&ofn);

}


...   下一页
    摘要:虽然刚刚遭受欧盟的处罚、虽然 linux 冲击力强劲,但7月26日,当微软平台策略总经理马丁·泰勒面对国内众多媒体记者时,仍然显得沉着自信。而在这沉着背后,掩饰不住的,是微软对商业软件模式的极力推崇。希望微软能撑得住  面对 linux 对市场的蚕食,微软还能撑多久?目前还看不到这个软件帝国有撑不住的迹象,泰勒也表示,希望微软能坚持得住。即使在 ibm 等大型it企业纷纷表态支持 lin......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE