- 博客(11)
- 资源 (4)
- 收藏
- 关注
原创 Windows编程 双缓存绘图
// bmp_1.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" //窗口初始化工作 void InithInstance(HINSTANCE hInstance,int nCmdShow); //实现窗口类的定义和注册 void MyReg
2010-05-24 22:34:00 451
原创 数据库系统
DataDlg://数据库操作 BOOL CDataBaseDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application's main window is n
2010-05-24 22:32:00 354
原创 读取各进程信息
void CPocket1Dlg::OnButton1() { HANDLE handle = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0); PROCESSENTRY32 proinfo; if (Process32First(handle,&proinfo)) { CString str; while (1)
2010-05-24 22:31:00 289
原创 文件系统
CString k1=L"//"; TCHAR k2[]=L"*.*"; CMap mymap; static int i; BOOL CFilesystemDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this aut
2010-05-24 22:26:00 337
原创 静态库 动态库
建立静态链接库 选择WCE Static Library 新建头文件 在头文件里面进行函数声明 新建cpp文件 在里面添加include “StdAfx.h” 也要添加之前自己建立的头文件 然后在下面写出函数的实现部分 最后编译,可以得到lib文件 将lib文件和对应的函数头文件拷贝入一个MFC工程文件夹下 在Header Files 列表中添加该.h文件 在cpp文
2010-05-24 22:24:00 338
原创 copydata-窗口间消息
::::PART1:::: BOOL CPart1Dlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a
2010-05-24 22:20:00 355
原创 两种进程开启方法
void CProcess1Dlg::OnButton1() { // TODO: Add your control notification handler code here CreateProcess(L"//BMPCHANGE.exe",NULL,NULL,NULL,FALSE,CREATE_NEW_CONSOLE,NULL,NULL,NULL,&proinfo); Clo
2010-05-24 22:16:00 355
原创 UDP
BOOL CUDPDlg::OnInitDialog() { CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_
2010-05-24 21:46:00 364
原创 SOCKET套接字
server端 SOCKET clientsocket; HANDLE handleThread; DWORD WINAPI WinPorc(LPVOID lparam); void CSocketDlg::OnButton2() //1.创建主Socket { mysocket = socket(AF_INET,SOCK_STREAM,0); if (mysocket ==
2010-05-24 21:42:00 392
原创 TCP client
void CClientDlg::OnBUTTONConnect() { UpdateData(TRUE); if (m_ClientEdit_Name == L"") { MessageBox(L"Please input your name"); return ; } else { m_CEditName.EnableWindow(FALSE);
2010-05-24 21:37:00 514
原创 TCP server
void CServerDlg::OnBUTTONOpen() { //加载WSA // WORD wVersionRequested; // WSADATA wsaData; // int err; // wVersionRequested = MAKEWORD( 2, 2 ); // err = WSAStartup( wVersionRequested, &wsa
2010-05-24 21:36:00 427
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人