|
分享一个偶用汇编写的一个水印软件
呵呵,自己沙发。刚刚看到论坛中前面有人发过一个bmp数字水印的帖子,我们用的算法是不同的。 |
|
[原创]通过符号表找到系统未导出的函数地址源码
好文。学习ing... |
|
[求助]模态对话框不能关闭与移动
把你的工程打包发给我 |
|
[己办2期,暂停结束]软件安全系列培训——安全编程
好,知识转化为财富,有益的尝试。 |
|
[求助]有关过滤器的问题!
贴你的代码看看 |
|
[求助]模态对话框不能关闭与移动
,代码写得有问题啊。我给你修改修改。 #include "windows.h" #include <string> #define IDD_DIALOG1 102 #define IDD_DIALOG2 104 #define IDD_DIALOG3 105 #define IDI_ICON1 103 #define IDC_EDIT1 1000 #define IDC_EDIT2 1001 #define IDABOUT 3 HINSTANCE hinstance; char* ID = "zhoulike"; char* PASS = "198929"; char idh[20]; char password[20]; int label; bool cmp(char* ch1,char* ch2) { if(!strcmp(ID,ch1)) if(!strcmp(PASS,ch2)) return true; return false; } bool CALLBACK dlgproc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { HICON hicon; bool rt; HWND hdlg; switch(uMsg) { case WM_INITDIALOG: hicon = LoadIcon(hinstance,MAKEINTRESOURCE(IDI_ICON1)); SendMessage(hWnd,WM_SETICON,ICON_BIG,LPARAM(hicon)); break; case WM_CLOSE: EndDialog(hWnd,NULL); break; case WM_COMMAND: switch(LOWORD(wParam)) { case IDC_EDIT1: GetDlgItemText(hWnd,IDC_EDIT1,idh,20); break; case IDC_EDIT2: GetDlgItemText(hWnd,IDC_EDIT2,password,20); break; case IDOK: label++; rt = cmp(idh,password); if(rt) { EndDialog(hWnd,NULL); } else { if(label >= 3) { MessageBox(hWnd,"连续3次输入错误....","啊哦",MB_OK); hdlg = GetDlgItem(hWnd,IDC_EDIT1); EnableWindow(hdlg,false); hdlg = GetDlgItem(hWnd,IDC_EDIT2); EnableWindow(hdlg,false); hdlg = GetDlgItem(hWnd,IDOK); EnableWindow(hdlg,false); } else MessageBox(hWnd,"用户名或密码错误","WARNING",MB_OK); EndDialog(hWnd,NULL); } break; case IDCANCEL: EndDialog(hWnd,NULL); break; case IDabout: DialogBoxParam(hinstance,MAKEINTRESOURCE(IDD_DIALOG3),hWnd,DLGPROC(dlgproc),NULL); break; } default: return FALSE; } return true; } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBoxParam(hinstance,MAKEINTRESOURCE(IDD_DIALOG1),NULL,DLGPROC(dlgproc),NULL); return 0; } |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值