<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Kevin_分类_07-Visual C++</title><id>http://feed.cnblogs.com/blog/u/35666/category/223620/rss</id><updated>2012-06-03T14:39:43Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/category/223620.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/35666/category/223620/rss"/><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/05/25/1743475.html</id><title type="text">转一个仿QQ界面(VC实现)</title><summary type="text">摘自：http://topic.csdn.net/u/20100519/21/05d4822d-c59c-413d-abd3-6c26149b8dd9.html 循序渐进实现仿QQ界面（一）：园角矩形与双缓冲贴图窗口 http://topic.csdn.net/u/20100108/10/EBE0AAE8-0148-417B-BA80-EF1119F0C6A4.html 循序渐进实现仿QQ界面（二...</summary><published>2010-05-25T03:57:00Z</published><updated>2010-05-25T03:57:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/05/25/1743475.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/05/25/1743475.html"/><content type="text">摘自：http://topic.csdn.net/u/20100519/21/05d4822d-c59c-413d-abd3-6c26149b8dd9.html 循序渐进实现仿QQ界面（一）：园角矩形与双缓冲贴图窗口 http://topic.csdn.net/u/20100108/10/EBE0AAE8-0148-417B-BA80-EF1119F0C6A4.html 循序渐进实现仿QQ界面（二...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2010/02/24/1672552.html</id><title type="text">内嵌ActiveX的ActiveX控件</title><summary type="text">介绍：如今在许多流媒体视频网站（youku,tudou......）我们都会发现，观看视频之前都会有一段时间的广告，甚至在观看视频途中也会插入一些广告。实现这个效果的可以有多种技术。使用Javascript就可以实现，只需要在同一个位置分别创建两个Object，一个嵌入Flash插件，一个嵌入 WMP插件，然后切换显示这两个控件即可。使用COM/Activex技术也可以在同一个控件中实现这...</summary><published>2010-02-24T05:04:00Z</published><updated>2010-02-24T05:04:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2010/02/24/1672552.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2010/02/24/1672552.html"/><content type="text">介绍：如今在许多流媒体视频网站（youku,tudou......）我们都会发现，观看视频之前都会有一段时间的广告，甚至在观看视频途中也会插入一些广告。实现这个效果的可以有多种技术。使用Javascript就可以实现，只需要在同一个位置分别创建两个Object，一个嵌入Flash插件，一个嵌入 WMP插件，然后切换显示这两个控件即可。使用COM/Activex技术也可以在同一个控件中实现这...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/21/1628787.html</id><title type="text">VC++ 网络SOCKET编程</title><summary type="text">    为了方便网络编程，90年代初，由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口，即Windows Sockets规范，它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。现在的Winsock已经基本上实现了与协议无关，你可以使用Winsock来调用多种协议的功能...</summary><published>2009-12-21T05:13:00Z</published><updated>2009-12-21T05:13:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/21/1628787.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/21/1628787.html"/><content type="text">    为了方便网络编程，90年代初，由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口，即Windows Sockets规范，它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。现在的Winsock已经基本上实现了与协议无关，你可以使用Winsock来调用多种协议的功能...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628045.html</id><title type="text">利用MFC的Csocket类实现网络通信</title><summary type="text">Windows环境下进行通讯程序设计的最基本方法是应用Windows Sockets实现进程间的通讯，为此微软提供了大量基于Windows Sockets的通讯API，如WinSockAPI、WinInetAPI和ISAPI，并一直致力于开发更快、 更容易的通讯API，将其和MFC集成在一起以使通讯编程越来越容易。本实例重点介绍使用MFC的CSocket类编写网络通讯程序的方法，并通过使用CSoc...</summary><published>2009-12-19T20:23:00Z</published><updated>2009-12-19T20:23:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628045.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628045.html"/><content type="text">Windows环境下进行通讯程序设计的最基本方法是应用Windows Sockets实现进程间的通讯，为此微软提供了大量基于Windows Sockets的通讯API，如WinSockAPI、WinInetAPI和ISAPI，并一直致力于开发更快、 更容易的通讯API，将其和MFC集成在一起以使通讯编程越来越容易。本实例重点介绍使用MFC的CSocket类编写网络通讯程序的方法，并通过使用CSoc...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628037.html</id><title type="text">VC++ Socket编程 简单的Tcp/ip客户端</title><summary type="text">#include &lt;windows.h&gt; #include &lt;iostream.h&gt; #include &lt;winsock.h&gt; #define NO_FLAGS_SET 0 #define PORT (u_short) 44965 #define DEST_IP_ADDR "192.168.10.158" //Server address I...</summary><published>2009-12-19T17:59:00Z</published><updated>2009-12-19T17:59:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628037.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/20/1628037.html"/><content type="text">#include &lt;windows.h&gt; #include &lt;iostream.h&gt; #include &lt;winsock.h&gt; #define NO_FLAGS_SET 0 #define PORT (u_short) 44965 #define DEST_IP_ADDR "192.168.10.158" //Server address I...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/19/1627670.html</id><title type="text">socket编程步骤</title><summary type="text">sockets（套接字）编程有三种，流式套接字（SOCK_STREAM），数据报套接字（SOCK_DGRAM），原始套接字（SOCK_RAW）；基于TCP的socket编程是采用的流式套接字。在这个程序中，将两个工程添加到一个工作区。要链接一个ws2_32.lib的库文件。服务器端编程的步骤： 1：加载套接字库，创建套接字(WSAStartup()/socket())； 2：绑定套接字到一个IP地...</summary><published>2009-12-19T04:49:00Z</published><updated>2009-12-19T04:49:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/19/1627670.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/19/1627670.html"/><content type="text">sockets（套接字）编程有三种，流式套接字（SOCK_STREAM），数据报套接字（SOCK_DGRAM），原始套接字（SOCK_RAW）；基于TCP的socket编程是采用的流式套接字。在这个程序中，将两个工程添加到一个工作区。要链接一个ws2_32.lib的库文件。服务器端编程的步骤： 1：加载套接字库，创建套接字(WSAStartup()/socket())； 2：绑定套接字到一个IP地...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626894.html</id><title type="text">VC中的数据类型</title><summary type="text">标识符 实际类型 意义 CHAR char 8位Windows(ANSI)字符。 CCHAR char 8位Windows(ANSI)字符。 PSZ char* 一个以"NULL"结束的Windows字符串的指针 PCHAR CHAR* 一个CHAR型指针 PSTR CHAR* 一个以"NULL"结...</summary><published>2009-12-18T02:06:00Z</published><updated>2009-12-18T02:06:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626894.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626894.html"/><content type="text">标识符 实际类型 意义 CHAR char 8位Windows(ANSI)字符。 CCHAR char 8位Windows(ANSI)字符。 PSZ char* 一个以"NULL"结束的Windows字符串的指针 PCHAR CHAR* 一个CHAR型指针 PSTR CHAR* 一个以"NULL"结...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626892.html</id><title type="text">VC常见数据类型转换详解</title><summary type="text">我们先定义一些常见类型变量借以说明  int i = 100;  long l = 2001;  float f=300.2;  double d=12345.119;  char ...</summary><published>2009-12-18T02:05:00Z</published><updated>2009-12-18T02:05:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626892.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626892.html"/><content type="text">我们先定义一些常见类型变量借以说明  int i = 100;  long l = 2001;  float f=300.2;  double d=12345.119;  char ...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626887.html</id><title type="text">BSTR、char*和CString转换</title><summary type="text">(1) char*转换成CString若将char*转换成CString，除了直接赋值外，还可使用CString::Format进行。例如：char chArray[] = "This is a test"; char * p = "This is a test"; 或LPSTR p = "This is a test"; 或在已定义Unicode应的用程序中TCHAR * p = _...</summary><published>2009-12-18T02:01:00Z</published><updated>2009-12-18T02:01:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626887.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/18/1626887.html"/><content type="text">(1) char*转换成CString若将char*转换成CString，除了直接赋值外，还可使用CString::Format进行。例如：char chArray[] = "This is a test"; char * p = "This is a test"; 或LPSTR p = "This is a test"; 或在已定义Unicode应的用程序中TCHAR * p = _...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625524.html</id><title type="text">多线程编程之四——线程的同步</title><summary type="text">八、线程的同步虽然多线程能给我们带来好处，但是也有不少问题需要解决。例如，对于像磁盘驱动器这样独占性系统资源，由于线程可以执行进程的任何代码段，且线程的运行是由系统调度自动完成的，具有一定的不确定性，因此就有可能出现两个线程同时对磁盘驱动器进行操作，从而出现操作错误；又例如，对于银行系统的计算机来说，可能使用一个线程来更新其用户数据库，而用另外一个线程来读取数据库以响应储户的需要，极有可能读数据库...</summary><published>2009-12-16T05:50:00Z</published><updated>2009-12-16T05:50:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625524.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625524.html"/><content type="text">八、线程的同步虽然多线程能给我们带来好处，但是也有不少问题需要解决。例如，对于像磁盘驱动器这样独占性系统资源，由于线程可以执行进程的任何代码段，且线程的运行是由系统调度自动完成的，具有一定的不确定性，因此就有可能出现两个线程同时对磁盘驱动器进行操作，从而出现操作错误；又例如，对于银行系统的计算机来说，可能使用一个线程来更新其用户数据库，而用另外一个线程来读取数据库以响应储户的需要，极有可能读数据库...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625500.html</id><title type="text">多线程编程之二——MFC中的多线程开发（收藏）</title><summary type="text">转载：http://www.vckbase.com/document/viewdoc/?id=1706Source code五、MFC对多线程编程的支持MFC中有两类线程，分别称之为工作者线程和用户界面线程。二者的主要区别在于工作者线程没有消息循环，而用户界面线程有自己的消息队列和消息循环。工作者线程没有消息机制，通常用来执行后台计算和维护任务，如冗长的计算过程，打印机的后台打印等。用户界...</summary><published>2009-12-16T05:21:00Z</published><updated>2009-12-16T05:21:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625500.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625500.html"/><content type="text">转载：http://www.vckbase.com/document/viewdoc/?id=1706Source code五、MFC对多线程编程的支持MFC中有两类线程，分别称之为工作者线程和用户界面线程。二者的主要区别在于工作者线程没有消息循环，而用户界面线程有自己的消息队列和消息循环。工作者线程没有消息机制，通常用来执行后台计算和维护任务，如冗长的计算过程，打印机的后台打印等。用户界...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625490.html</id><title type="text">多线程编程之一(Win32)——问题提出（收藏）</title><summary type="text">Source code一、问题的提出编写一个耗时的单线程程序：新建一个基于对话框的应用程序SingleThread，在主对话框IDD_SINGLETHREAD_DIALOG添加一个按钮，ID为IDC_SLEEP_SIX_SECOND，标题为“延时6秒”，添加按钮的响应函数，代码如下： [代码]编译并运行应用程序，单击“延时6秒”按钮，你就会发...</summary><published>2009-12-16T05:07:00Z</published><updated>2009-12-16T05:07:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625490.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/16/1625490.html"/><content type="text">Source code一、问题的提出编写一个耗时的单线程程序：新建一个基于对话框的应用程序SingleThread，在主对话框IDD_SINGLETHREAD_DIALOG添加一个按钮，ID为IDC_SLEEP_SIX_SECOND，标题为“延时6秒”，添加按钮的响应函数，代码如下： [代码]编译并运行应用程序，单击“延时6秒”按钮，你就会发...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1625166.html</id><title type="text">网页中ActiveX控件与JavaScript交互 js调用ActiveX函数</title><summary type="text">JavaScript调用ActiveX控件中的函数这个交互的关键是在接口类中添加对外的方法。大概步骤如下：1． 在.NET在新建一个MFC ActiveX工程2． 在类视图中，可以看到最下面有一个“工程名＋Lib”项，图标与上面的类图标不同，展开它，可以看到三项，下面要做的就是在第二项（名为“_D＋工程名”）下添加对外函数3． 展开第二项后可以看到下...</summary><published>2009-12-15T15:04:00Z</published><updated>2009-12-15T15:04:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1625166.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1625166.html"/><content type="text">JavaScript调用ActiveX控件中的函数这个交互的关键是在接口类中添加对外的方法。大概步骤如下：1． 在.NET在新建一个MFC ActiveX工程2． 在类视图中，可以看到最下面有一个“工程名＋Lib”项，图标与上面的类图标不同，展开它，可以看到三项，下面要做的就是在第二项（名为“_D＋工程名”）下添加对外函数3． 展开第二项后可以看到下...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624863.html</id><title type="text">使用MFC开发ActiveX控件（转）</title><summary type="text">使用MFC开发ActiveX控件转截：http://www.cnblogs.com/jyz/archive/2008/04/11/1148476.html摘要： 本文对COM组件中的ActiveX控件的MFC开发方法进行了介绍，讲述了用户自定义和库存属性、方法以及事件的添加方法和属性页的制作过程。使读者能够掌握基本的MFC ActiveX开发方法。前言ActiveX控件是一种实现了一系列特...</summary><published>2009-12-15T07:41:00Z</published><updated>2009-12-15T07:41:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624863.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624863.html"/><content type="text">使用MFC开发ActiveX控件转截：http://www.cnblogs.com/jyz/archive/2008/04/11/1148476.html摘要： 本文对COM组件中的ActiveX控件的MFC开发方法进行了介绍，讲述了用户自定义和库存属性、方法以及事件的添加方法和属性页的制作过程。使读者能够掌握基本的MFC ActiveX开发方法。前言ActiveX控件是一种实现了一系列特...</content></entry><entry><id>http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624812.html</id><title type="text">A Complete ActiveX Web Control Tutorial</title><summary type="text">VC++开发ActiveX 控件 转载：http://www.codeproject.com/KB/COM/CompleteActiveX.aspx效果图如下：IntroductionActiveX is a Microsoft technology developed in the mid 90�s, that allows for the creation of applet-like app...</summary><published>2009-12-15T06:56:00Z</published><updated>2009-12-15T06:56:00Z</updated><author><name>Kevin-wang</name><uri>http://www.cnblogs.com/kevin-wang/</uri></author><link rel="alternate" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624812.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/kevin-wang/archive/2009/12/15/1624812.html"/><content type="text">VC++开发ActiveX 控件 转载：http://www.codeproject.com/KB/COM/CompleteActiveX.aspx效果图如下：IntroductionActiveX is a Microsoft technology developed in the mid 90�s, that allows for the creation of applet-like app...</content></entry></feed>
