`
文章列表
#include <string> #include <iostream> #include<stdio.h> using namespace std; void main() { char *p = "hello world"; char **pp = &p; cout<<p<<endl; cout<<&p<<endl; cout<<&pp<<endl; cout<<*(&pp) ...
最近在看这本书--《Visual C++MFC编程实例》,总体感觉是挺不错的,所以准备写一下笔记。
1首先要在窗口类的cpp文件手动添加消息响应机制, ON_MESSAGE(ID,Handler) LRESULT Handler(WPARAM,LPARAM);//响应的函数 BEGIN_MESSAGE_MAP(CShellDlg, CDialog) //{{AFX_MSG_MAP(CShellDlg) ON_MESSAGE(WM_SENDOFFLINE, OnSendOffline) //自定义消息 ON_MESSAGE(WM_SWIPECARD, OnSwipeCard) //自定义消息 ON_MESSAGE(WM_MODEM, OnModem) ...
PostMessage和SendMessage的区别 function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'& ...
http://www.caisong.com/read.php/453.htm 如何用SendMessage模拟某一按钮的点击事件 大 | 中 | 小 [ 2007/01/29 16:47 | by song ] 如何用SendMessage模拟某一按钮的点击事件今天在写程序的时候,用到了进程间的通信,上网查 ...
void GetTime_Case_1() { // #include // #include //方案— :能精确到毫秒级并且使用简洁方便; SYSTEMTIME cTime; //获取系统时间类 CString TimeString; //转换 char cBuffer[100] = {0}; GetLocalTime(&cTime); //获取本地时间 TimeString.Format(_T("%4d-%2d-%2d %2d:%2d:%2d") //格式化输出到CString ,Time.wYear ,Time ...
//////////////////////////////////////////////////////////////////////////////Static Varstatic int LeftPos = 0;static int RightPos = 0;static int UpPos = 0;static int DownPos = 0; //用来保存坐标的位置 BOOL CKeyTestDlg::PreTranslateMessage(MSG* pMsg) {// TODO: Add your specialized code here and/or call the ...
关于wince telnet组件的一篇博客 The CE Telnet Server A lot of folks (even in the CE team) don't realize that Windows CE has a telnet server as an optional component. This is not something that we see you putting in shipping devices. It is a very cool tool during your initial development ...
1.你今天过得怎么样? 当你对她说这句话时,表明你对她十分体贴,有兴趣了解她朝九晚五的日常生活。当然,这样的提问也可能使她回想起当天不愉快的小插曲,所以你要准备留些时间耐心倾听她的经历,好让她有一个情感发泄 ...
#include <stdio.h>#include <stdlib.h>#include <conio.h>#include <windows.h>DWORD WINAPI run(LPVOID p){ printf("three%d run..\n",p); Sleep((DWORD)p*3000); return (DWORD)p;}int main(){ HANDLE three1 = NULL; //线程 HANDLE three2 = NULL; DWORD uExitCode1 = 0; // 返回值 DWORD ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 11"> <meta name="Originator" content="Microso ...
一、WSAStartup函数intWSAStartup(WORDwVersionRequested,LPWSADATAlpWSAData);使 用Socket的程序在使用Socket之前必须调用WSAStartup函数。该函数的第一个参数指明程序请求使用的Socket版本,其中高位字节指 明副版本、低位字节指明主版本;操作系 ...
// CPUSpeedDlg.cpp : implementation file//#include "stdafx.h"#include "CPUSpeed.h"#include "CPUSpeedDlg.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif////////////////////////////////////////////////////////////////////////// ...
/*************************Date:2008-11-19*Writen BY:Jacky_Dai************************///// 1的数目// “智慧碰撞”专栏之七// 给定一个十进制正整数N,写下从1开始,到N的所有整数,然后数一下其中出现的所有“1”的个数。// 例如:// N= 2,写下1,2。这样只出现了1个“1”。// N= 12,我们会写下1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12。这样,1的个数是5。////TODO:Add you needed head file#include <stdi ...
NetBeans CDC 仿真器平台安装指南 NetBeans Mobility 支持 Java Micro Edition (ME) 联网的设备配置 (Connected Device Configuration, CDC) 开发,但没有捆绑的 CDC 平台可用于创建应用程序,以支持使用 Personal Profile、Foundation Profile 或 AGUI Profile 的设备。本文档将提供有关对 Sun Java Toolkit for CDC 以及其他用于 CDC 开发的常用软件开发工具包 (Software Development Kit, SDK ...
Global site tag (gtag.js) - Google Analytics