自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Y---猪头笨蛋!

~~~~~~~~~~~~~~beyondboy

  • 博客(43)
  • 资源 (14)
  • 收藏
  • 关注

原创 自动生成xml文件

今天下午写了个自动生成xml文件的demo.代码如下:#include #include #include #include using namespace std;class XmlElement{public: XmlElement(); void SetElementNam

2011-07-26 15:54:30 5416

原创 学习笔记----字符串的连接

功能:连接两个字符串,其中c为连接符void Join(const vector& V, char c, string& s){ //s.clear();  vector::const_iterator ptr; for (ptr = V.begin(); ptr != V.en

2011-07-25 14:33:10 961 2

转载 关于多语言编码范围

中文的unicode码的范围4e00-9fa5 英文和ASC码兼容,只不过高字节是0x00 低字节=ascii1)标准CJK文字 http://www.unicode.org/Public/UNIDATA/Unihan.html Code point range Block na

2011-07-22 08:58:30 1084

原创 笔记----boost学习第一步:编译方法

boost被称为是准标准C++库,不过这也是该界人对它的尊称。话说回来,boost确实很强大。不过一般的公司都不会用它。原因是:它不是C++ 标准,这个理由我已经遇到了很多次,很多人不知道是不懂boost,还是特意贬低它。对它总是持否定的态度。我个人看来,做为一名C++爱好者,我

2011-07-21 14:33:34 727

原创 学习笔记----字符串分割

1, 字符串的分割算法(标准库版) void split(const string& s,char c,vector& v){string::size_type i = 0;string::size_type j = s.find(c);while (j != string::n

2011-07-20 15:32:23 911

原创 学习笔记----字符串的追加和裁剪

关于字符串的处理,我之前一般只停留在string的层面,也没有更加深入的去学习,心里面认为,会用就可以了,没有必要知道为什么是这样?类型到底是什么样子,可就在我稀里糊涂用的时候,却发现了很多乱码跳了出来,这个时候我不得不考虑类型的问题了。今天才知道,string类型原来是basi

2011-07-20 13:50:35 2782

原创 以一个处理事情的事例为例,谈谈肺腑之言,望读着能理解

以一个处理事情的事例为例,谈谈肺腑之言,望读着能理解        在最近的项目中,软件要做成支持23国的语言,做多语言不难,关键是多语言的编码问题,做了这国的,其他国的语言编码就乱套了,太麻烦了,真是太麻烦了,有的时候真让人受不了。明明处理的时候没有发现问题,可软件传到西欧,传

2011-07-17 01:21:08 1523 1

原创 Message Reflection for Windows Controls

<br />This technical note describes message reflection, a new feature in MFC 4.0. It also contains directions for creating a simple reusable control that uses message reflection.<br />This technical note does not discuss message reflection as it applies to

2011-04-27 13:43:00 1011

原创 RegCreateKeyEx

<br />The RegCreateKeyEx function creates the specified registry key. If the key already exists, the function opens it.LONG RegCreateKeyEx( HKEYhKey, // handle to open key LPCTSTRlpSubKey, //

2011-04-25 12:47:00 1210

转载 DRAWITEMSTRUCT

<br />来由:DRAWITEMSTRUCT 为需要自绘的控件或者菜单项提供了必要的信息。在需要绘制的控件或者菜单项对应的WM_DRAWITEM消息函数中得到一个指向该结构的指针。 <br />  例子: <br />virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); (.h中声明)   void CColorButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) (.cpp中定义)   这里L

2011-03-30 22:48:00 595

原创 Animate to display a dialog message box in the right-bottom of the window screen

      If you used to use MSN Messager or like fetion in China,you will find a message box will be popped out in the right-bottom of your computer screen while the message arrived.But how to do we can show our own message like that? Here,I write a method of

2011-01-25 10:36:00 948

转载 SetTimer函数的用法

什么时候我们需要用到SetTimer函数呢?当你需要每个一段时间执行一件事的的时候就需要使用SetTimer函数了。 使用定时器的方法比较简单,通常告诉WINDOWS一个时间间隔,然后WINDOWS以此时间间隔周期性触发程序。通常有两种方法来实现:发送WM_TIMER消息和调用应用程序定义的回调函数。1.1 用WM_TIMER来设置定时器先请看SetTimer这个API函数的原型UINT_PTR SetTimer(  HWND hWnd,              // 窗口句柄  UINT_PTR nID

2011-01-24 15:17:00 527

原创 DDALine Arithmetic

  void CDraw::DDALine(CDC* pDC,int x1,int y1,int x2,int y2,COLORREF color){ double dx,dy,e,x,y; dx = x2-x1; dy = y2-y1; e = (fabs(dx) > fabs(dy))? fabs(dx):fabs(dy); dx /= e; dy /= e; x = x1; y = y1; for (int i=1; i {  pDC->SetPixel((int)(x+0.5),(int)(y+0.

2011-01-18 14:04:00 1117

原创 How to wirte tray application procedure

<br />    I wrote an application procedure on how to tray a dialog box in the bottom-right of the screen.<br /> you should learn about NOTIFYICONDATA structure.The MFC describe it like this:<br />  typedef struct _NOTIFYICONDATA { <br />    DWORD cbSize; <

2011-01-17 17:43:00 922

原创 Put a CComboBox control on CToolBar

<br />    This tutiual is about how to put a CComboBox control on CToolBar.look at the next description.<br />First of all,you should create a CcomboBoxBar class derived from CToolBar like this:<br />ComboToolBar.h:<br />     class CComboToolBar : public C

2010-12-22 14:02:00 859

原创 10 New STL Algorithms That Will Make You A More Productive Developer

Introduction<br />C++0x was recently furnished with new algorithms. Some of them fill in gaps in the C++03 Standard Library whereas others are convenience algorithms that simplify recurrent programming tasks by using more intuitive parameter lists and a cl

2010-12-21 09:57:00 527

原创 How to change software UI language

<br />    Recently,I mastered a method on how to change software UI language such as menu,button something like that. Here,I wirte something for you and share my code with you.If you like it.we can talk about it together and exchange our mind each other.OK

2010-12-20 12:03:00 1349

原创 How to use VC++6.0 to develop web Service Client

<br />         If you wanna use VC++6.0 to develop application procedure of web service client,your machine have to install SOAP Toolkit3.0 and Microsoft XML Parser!The next task,I will discuss how to use Microsoft SOAP Toolkit3.0 to establish  a simple ap

2010-12-09 11:41:00 943

转载 SOAP 概要

<br />   SOAP 概要<br />此教程已向您讲解了如何透过 HTTP 使用 SOAP 在应用程序之间交换信息。<br />您已经学习了有关 SOAP 消息中不同元素和属性的知识。<br />您也学习了如何把 SOAP 作为一种协议来使用以访问 web service。您已经学习了 SOAP,下一步呢?<br />下一步应该学习 WSDL 和 Web Services。WSDL<br />WSDL 是基于 XML 的语言,用于描述 Web services 以及如何访问它们。<br />WSDL

2010-12-08 17:40:00 450

转载 SOAP 实例

   一个 SOAP 实例在下面的例子中,一个 GetStockPrice 请求被发送到了服务器。此请求有一个 StockName 参数,而在响应中则会返回一个 Price 参数。此功能的命名空间被定义在此地址中: "http://www.example.org/stock"SOAP 请求:POST /InStock HTTP/1.1Host: www.example.orgContent-Type: application/soap+xml; charset=utf-8Content-Leng

2010-12-08 17:39:00 438

转载 SOAP HTTP Binding

<br />      HTTP 协议<br />HTTP 在 TCP/IP 之上进行通信。HTTP 客户机使用 TCP 连接到 HTTP 服务器。在建立连接之后,客户机可向服务器发送 HTTP 请求消息:POST /item HTTP/1.1Host: 189.123.345.239Content-Type: text/plainContent-Length: 200<br />随后服务器会处理此请求,然后向客户机发送一个 HTTP 响应。此响应包含了可指示请求状态的状态代码:200 OK

2010-12-08 17:38:00 550

转载 SOAP Fault 元素

<br />   <br />SOAP Fault 元素用于存留 SOAP 消息的错误和状态信息。SOAP Fault 元素<br />可选的 SOAP Fault 元素用于指示错误消息。<br />如果已提供了 Fault 元素,则它必须是 Body 元素的子元素。在一条 SOAP 消息中,Fault 元素只能出现一次。<br />SOAP 的 Fault 元素拥有下列子元素:子元素描述<faultcode>供识别故障的代码<faultstring>可供人阅读的有关故障的说明<faultactor>有关是

2010-12-08 17:37:00 766

转载 SOAP Body 元素

<br />     <br />强制使用的 SOAP Body 元素包含实际的 SOAP 消息。SOAP Body 元素<br />必需的 SOAP Body 元素可包含打算传送到消息最终端点的实际 SOAP 消息。<br />SOAP Body 元素的直接子元素可以是合格的命名空间。SOAP 在默认的命名空间中("http://www.w3.org/2001/12/soap-envelope")定义了 Body 元素内部的一个元素。即 SOAP 的 Fault 元素,用于指示错误消息。<?xml ver

2010-12-08 17:36:00 631

转载 SOAP Header 元素

<br />     <br />可选的 SOAP Header 元素包含头部信息。SOAP Header 元素<br />可选的 SOAP Header 元素可包含有关 SOAP 消息的应用程序专用信息(比如认证、支付等)。如果 Header 元素被提供,则它必须是 Envelope 元素的第一个子元素。<br />注释:所有 Header 元素的直接子元素必须是合格的命名空间。<?xml version="1.0"?><soap:Envelopexmlns:soap="http://www.w3

2010-12-08 17:35:00 559

转载 SOAP Envelope 元素

强制使用的 SOAP 的 Envelope 元素是 SOAP 消息的根元素。SOAP Envelope 元素必需的 SOAP 的 Envelope 元素是 SOAP 消息的根元素。它可把 XML 文档定义为 SOAP 消息。请注意 xmlns:soap 命名空间的使用。它的值应当始终是:http://www.w3.org/2001/12/soap-envelope并且它可把封装定义为 SOAP 封装: ... Message information goes here ...xmlns

2010-12-08 17:33:00 435

转载 SOAP 语法

    SOAP 构建模块一条 SOAP 消息就是一个普通的 XML 文档,包含下列元素:必需的 Envelope 元素,可把此 XML 文档标识为一条 SOAP 消息可选的 Header 元素,包含头部信息必需的 Body 元素,包含所有的调用和响应信息可选的 Fault 元素,提供有关在处理此消息所发生错误的信息所有以上的元素均被声明于针对 SOAP 封装的默认命名空间中:http://www.w3.org/2001/12/soap-envelope以及针对 SOAP 编码和数据类型的默认命名空间:ht

2010-12-08 17:32:00 449

转载 用VC++建立Service服务应用程序

<br />为什么要使用服务应该程序呢?服务程序就像系统的一些服务一样,能够自动地启动,并执行相应的操作;而且因为服务程序的在层次上和一般的应用程序不同,其能够在系统启动时就自动地运行,而不像一般的应用程序那样一定要在登陆后才能运行,这些就是服务的一些好处了,如果你也想你的程序具有这样的功能,那么你就可以建立一个服务应用程序了。 <br />  下面就跟着我一步一步地教你怎么去创建一个服务应用程序吧。<br />  本文主要介绍了OpenSCManager、CreateService、OpenService

2010-12-08 17:15:00 523

转载 SOAP简介

<br />SOAP简介<br /><br />SOAP-简单对象访问协议(Simple Object Access Protocol)。SOAP是一种轻量的、简单的、基于 XML 的协议,它被设计成在 WEB 上交换结构化的和固化的信息。 SOAP 可以和现存的许多因特网协议和格式结合使用,包括超文本传输协议(HTTP),简单邮件传输协议(SMTP),多用途网际邮件扩充协议(MIME)。它还支持从消息系统到远程过程调用(RPC)等大量的应用程序。<br />SOAP为在一个松散的、分布的环境中使用XML对

2010-12-08 17:12:00 829

原创 Configure file like format of ini and read data from ini file or write data to ini file

<br />    Sometimes,It's not that always store data in memory, you should store data to disk file,  because you release memory and destroy address of data  that <br />allocated to data previously when main thread procedure is destroyed.The data will be los

2010-12-02 19:40:00 653

原创 How to implement double interfaces by IDispatch automatically basing MFC

<br />     If you have mastered how to create a COM by ATL simple object,I think it 's a piece of cake for you to create double interfaces object (just select "dual" in your simple object property tab).and then you will see "interface ImyFun : IDispatch"--

2010-11-30 17:33:00 580

原创 Talk about VARIANT

<br />    VARIANT specify variant data that can not be passed by reference.When a variant refers to another variant by using the VT_VARIANT | VT_BYREF vartype,the variant being reffered to cannot also be of type VT_VARIANT | VT_BYREF,VARIANTs can be passed

2010-11-29 16:54:00 624

原创 C plus plus Concurrency in Action

<br /> these are exciting times for C plus plus users.Eleven years afters the origial C plus plus <br />standard was published in 1998,the C plus plus standards committee is giving the language and its supporting library a major overhaul.The new C plus plu

2010-11-23 08:59:00 876

原创 How to load a dll resource dialog box at an application Dialog box (怎么在一个应用程序对话框动态加载DLL里的资源对话框)

<br />   This afternoon,although  I have had  a little out of my mind.I am so excited because I learned a lot MFC intellectal points from a bit topic. I have handled how to load a dll resource at an application Dialog box successfully.Before this,I checked

2010-11-22 17:08:00 907

原创 How to call a DLL Dialog resource

Using dialog box resource in a DLL

2010-11-22 10:24:00 524

原创 The question about Serialize class and CRuntimeClass

How to use Serialize class and CRuntimeClass

2010-11-22 08:56:00 729

转载 MFC Initilization of General Service Control about InitCommonControls和InitCommonControlsEx(MFC 通用控件的初始化InitCommonControls和InitCo

Initilization of General Service Control about InitCommonControls和InitCommonControlsEx

2010-11-19 12:43:00 1294

原创 Let me talk about InitCommonControlsex(让我谈谈InitCommonControlsex的用法吧!)

Let me talk about InitCommonControlsex(让我谈谈InitCommonControlsex的用法吧!)

2010-11-19 12:14:00 1787

原创 About how to use Edit Control and SPin Control together! (关于怎么组合使用Edit Control 和 Spin Control 增加浮点数)

About how to use Edit Control and SPin Control together! (关于怎么组合使用Edit Control 和 Spin Control 增加浮点数)

2010-11-18 14:41:00 1350

原创 浅谈PreTranslateMessage用法

PreTranslateMessage 简单用法之一

2010-11-18 11:52:00 1392

原创 关于回调函数处理DLL里的数据问题

回调函数处理DLL里的数据问题,函数指针和回调函数之间数据的传递问题。注意:函数指针的参数一定要和回调函数里面的参数匹配。

2010-11-17 16:11:00 2868 3

VC 下媒体播放器的实现

这本书讲的很详细,很使用的一本书,实例代码可以直接拿到工作中用。

2010-11-17

让你的VC++软件界面更漂亮-界面

是我整理的关于VC++软件皮肤的一种做法。这里和大家分享下。

2010-11-17

Visual C# 2005.rar开发环境学习

Visual C# 2005.rar开发环境学习,经典,实用,容易上手,想学的就好好学习吧

2010-06-05

Java语言开发基础

我这里的资源都很基础,适合初学的人,没有开发经验的人学习。

2010-06-05

myExamination

毕业设计,在线考试系统,用C#写的。不是很好,这里和大家分享下

2010-06-05

javascript学习利器

本人收藏的好东西,在这里和大家分享.好东西,对你学习javascript绝对有帮助。

2010-02-10

C#从入门到精通经典教程

本人基础比较差,所以有很多关于基础教程的书籍,上传上去,希望会对菜鸟有帮助。

2010-01-24

《数据结构——C语言版》本书范例

这个里面包含了数据结构后面的所有习题集的答案及程序。对学习数据结构很有帮助的。

2010-01-24

数据结构与算法分析—C语言描述.pdf

这本书很不错的,我看了一边,比国内的教材好很多,而且通俗易懂.很适合初学者。

2010-01-24

FLASH四宝贝之-使用ActionScript.3.0组件

FLASH四宝贝之-使用ActionScript.3.0组件FLASH四宝贝之-使用ActionScript.3.0组件FLASH四宝贝之-使用ActionScript.3.0组件FLASH四宝贝之-使用ActionScript.3.0组件FLASH四宝贝之-使用ActionScript.3.0组件

2010-01-23

Flex Style Explorer

喜欢flex的网友可以考虑看看……很不错的参考资料。希望对有兴趣者有点帮助。

2010-01-23

C++高效编程与内存优化

英文版,只要你的英文好,看的懂,你就可以成材,对内存的优化确实很独到,有机会下下来看看吧。

2009-02-20

erlang程序设计中文手册

对于erlang爱好者,下一代主流语言选择是真确的,现在在国内,erlang刚刚在国内开始发展,但是中文资料却很少,希望这本书能给大家带意想不到收获!

2009-02-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除