falla.zhang

导航

2010年2月21日 #

MFC 问题集(8)CString/string/char *比较详解

摘要: (一) 概述string和CString均是字符串模板类,string为标准模板类(STL)定义的字符串类,已经纳入C++标准之中;CString(typedef CStringT> CString)为Visual C++中最常用的字符串类,继承自CSimpleStringT类,主要应用在MFC和ATL编程中,主要数据类型有char(应用于ANSI), wchar_t(unicode),T... 阅读全文

posted @ 2010-02-21 16:05 falla.zhang 阅读(661) 评论(0) 推荐(0) 编辑

MFC 问题集(5)单选按钮进行分组

摘要: 对单选按钮进行分组: 每组的第一个单选按钮设置属性:Group,Tabstop,Auto;其余按钮设置属性Tabstop,Auto。如:Radio1、Radio2、Radio3为一组,Radio4、Radio5为一组设定Radio1属性:Group,Tabstop,Auto设定Radio2属性:Tabstop,Auto设定Radio3属性:Tabstop,Auto设定Radio4属性:Group,... 阅读全文

posted @ 2010-02-21 16:04 falla.zhang 阅读(532) 评论(0) 推荐(0) 编辑

MFC 问题集(6)CString&int互转

摘要: VC++6.0 CString转int int转CString CString _temp = "100"; int _int; _int = atoi(_temp); =================================== CString str; int i = 2334; str.Format("%d",i); 阅读全文

posted @ 2010-02-21 16:04 falla.zhang 阅读(157) 评论(0) 推荐(0) 编辑

MFC 问题集(7)注意变量的作用域

摘要: CString lastZZHS ;if(int index=m_ListCtrl.GetItemCount()-1){ lastZZHS = m_ListCtrl.GetItemText(index,3); AfxMessageBox(lastZZHS); }//正常显示 if(int lastindex =(m_ListCtrl.GetItemCount()-1){ CString last... 阅读全文

posted @ 2010-02-21 16:04 falla.zhang 阅读(276) 评论(0) 推荐(0) 编辑

2010年2月8日 #

XPath

摘要: http://www.w3school.com.cn学习笔记 XPath 使用路径表达式来选取 XML 文档中的节点或节点集。节点是通过沿着路径 (path) 或者步 (steps) 来选取的。 XML 实例文档 我们将在下面的例子中使用这个 XML 文档。 <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore&g... 阅读全文

posted @ 2010-02-08 13:19 falla.zhang 阅读(285) 评论(0) 推荐(0) 编辑

Soap

摘要: http://www.w3school.com.cn学习笔记 · SOAP 指简易对象访问协议 · SOAP 是一种通信协议 · SOAP 用于应用程序之间的通信 · SOAP 是一种用于发送消息的格式 · SOAP 被设计用来通过因特网进行通信 · SOAP 独立于平台 · SOAP 独立于语言 · ... 阅读全文

posted @ 2010-02-08 13:19 falla.zhang 阅读(359) 评论(0) 推荐(0) 编辑

C#XML

摘要: XmlTextWriter xmlWriter; string strFilename = Server.MapPath( "data1.xml") ; xmlWriter = new XmlTextWriter(strFilename,Encoding.Default);//创建一个xml文档 xmlWriter.Formatting = Formatting.Indented; xmlWrit... 阅读全文

posted @ 2010-02-08 13:13 falla.zhang 阅读(213) 评论(0) 推荐(0) 编辑

C#MD5

摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr... 阅读全文

posted @ 2010-02-08 13:13 falla.zhang 阅读(186) 评论(0) 推荐(0) 编辑

C#string

摘要: C#的String.Split 方法 程序代码 1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] Split(char[] separator, StringSplitOptions options)4) p... 阅读全文

posted @ 2010-02-08 13:12 falla.zhang 阅读(659) 评论(0) 推荐(0) 编辑

2010年2月4日 #

MFC 问题集(1)EDIT控件

摘要: 问题:在基于对话框的MFC中添加一个EDIT控件,在里面输入数据(包括后字符)按回车想让它执行按钮控件里的代码,但默认的是在EDIT中输入完后按回车会关掉程序,怎么解决这 个问题(我把默认的OK按钮删除了,添加的是新的按钮)? 解决方法之一: 取消OK按钮的”默认“属性,并调整EDIT控件的属性,使其能够接受”Enter“键按下的事件,然后对EDI... 阅读全文

posted @ 2010-02-04 16:37 falla.zhang 阅读(1864) 评论(0) 推荐(0) 编辑