`
fdyang
  • 浏览: 79667 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论
文章列表
在Win32环境中,每个运行的应用程序都建立一个进程(Process),每个进程有一个或多个执行线程(Thread)组成. MFC把执行的线程封装在CWinThread类中,它还包括了同步类,这些类封装了事件,互斥,和可在Windows核心中找到的其他线程同步对象。 MFC区分了两种不同类型的线程: 用户界面线程(user-interface thread) 和工作者线程(worker thread).两者的主要区别在于user-interface thread有消息循环,而工作者线程没有。user-interface thread 可以创建窗口和处理发送给这些窗口的消息。worker th ...
批处理 ShellExecute(null, "open ", "c:\\abc.bat ", " ", " ",SW_SHOW ); 深入浅出ShellExecute 译者:徐景周(原作:Nishant S) Q: 如何打开一个应用程序? 正如您所看到的,我并没有传递程序的完整路径。 Q: 如何打开一个同系统程序相关连的文档? ShellExecute(this-> m_hWnd, "open ","c:\\abc.txt &qu ...
STL 即 Standard Template Library STL(标准模板库)是惠普实验室开发的一系列软件的统称。它是由Alexander Stepanov、Meng Lee和David R Musser在惠普实验室工作时所开发出来的。现在虽说它主要出现在C++中,但在被引入C++之前该技术就已经存在了很长的一段时间。 STL的代码从广义上讲分为三类:algorithm(算法)、container(容器)和iterator(迭代器),几乎所有的代码都采用了模板类和模版函数的方式,这相比于传统的由函数和类组成的库来说提供了更好的代码重用机会。在C++标准中,STL被 ...
软件项目管理是为了使软件项目能够按照预定的成本、进度、质量顺利完成,而对人员(People)、产品(Product)、过程(Process)和项目(Project)进行分析和管理的活动。 软件项目管理的根本目的是为了让软件项目尤其是大型项 ...

SQA

Software Quality Assurance (SQA) SQA consists of a means of monitoring the software engineering processes and methods used to ensure quality. SQA encompasses the entire software development process, which includes processes such as requirements definition, software design , coding , source code co ...
Software Development Life Cycle (SDLC). SDLC,aslo known as a Software Development Process, is a structrue imposed on the development of a software product. Software developemment activites. 1.Planning - An important task in creating a software program is extracting the requirements or requireme ...
HRESULT What we should know about HRESULT ? - HRSULT is a kind of Data Type ( Long 32bit) which is used for Windows. - It is The return codes used by COM interfaces. - To test an HRESULT value, use the FAILED and SUCCESSED macros. - This type is declared in WinNT.h as follows: typedef LONG HR ...
原文:http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx The data types supported by Windows are used to define function return values, function and message parameters, and structure members. They define the size and meaning of these elements. For more information about th ...
CListBox 如下继承关系 COBject : CCmdTarget : CWnd : CListBox *说明:下面英文部分摘自MSDN MFC Reference. In a single-selection list box, the user can select only one item. In a multiple-selection list box, a range of itmes can be selected. When the user selects an item, it is highliaged and the list box se ...
1. 字符基础: ASCII, MBCS/DBCS, Unicode 有3种编码模式,并对应3种字符类型。 (1)单字节字符集(single-byte character set (SBCS)). -在这种编码模式下,所有的字符都只用一个字节(Byte)标示。 -ASCII是SBCS,用一个字节标示为'\0'的来标识SBCS字 ...
(C++)从本机获取WMI数据. 下面的步骤被用于执行WMI程序. 第1步到第5步包含了建立和连接WMI的所有步骤。第6,7步用于数据查询和获取。 1. 通过调用CoInitialzeEx来初始化COM参数. 2. 通过调用CoInitializeSecurity来初始化COM过程安全. 3. 通过调用CoCreateInstance来实例化。 4. 通过调用IWbemLocator::ConnectServer来获取一个本机root\cimv2命名空间的IWbemServices的指针。 5. 设置IWbemServices代理安全,WMI service可以通过调用CoSetPr ...
如果在变量申明语句中使用了限定符const, 那么变量在程序执行期间将不能被改变。 const double version = 3.2; const 常见用途:1. 定义const指针,防止函数中修改由指针参数所指向的变量。 #include <iostream> using namespace std; void printStr(const char *str){ //使用const来确保函数不能修改str所指向对象. while(*str){ //*str=*str+1; //错误,不能修改参数指向的对象。 cout<<(char) ...
使用模板可以创建可重用的代码。模板可以分为两类,一个是函数模板(通用函数),另外一个是类模板(通用类)。 函数模板定义了一组应用于不同数据类型的通用运算。- 使用关键字 template 来创建. template <class Type> ret-type func-name(parameter list){ //.. } //或者 template <class Type> ret-type func-name(parameter list){ //.. } 其中,Type 是一个占位符,代表函数使用的数据类型. #include &l ...
纯虚函数(pure virtual function)是指在基类中声明但是没有定义的虚函数。 通用形式: virtual type func-name(parameter-list)=0; 其中,type 是函数的返回类型, func-name 是函数名。 =0 是把虚函数制定为纯虚函数。 通过虚函数申明为纯虚函数可以强制在派生类中重新定义虚函数。(否则编译器报错) 如果一个类至少含有一个纯虚函数,那么这个类被称为抽象类(abstract class).- 抽象类的重要特征:不能定义抽象类型的对象,抽象类只能作为其他类的基类,不能用来声明对象。 - 抽象类可以用来声明指针或者 ...
虚函数是指在基类中使用了vitual申明,并且在一个或多个派生类中被重新定义的函数。-> 每个派生类可以拥有自己的虚函数定义。- C++根据指针指向对象的类型来决定调用虚函数的哪个定义,这种定义实在运行时作出的。- 当虚函数在派生类中重新定义时,关键字virtual 不需要重复。(重复也不是错误);虚函数的继承: 无论经过多少层的继承函数,都是虚函数。- 包含虚函数的类被称为多态类。;虚函数+继承,使C++支持运行多态.(Polymorphism) #include <iostream> using namespace std; class base{ publ ...
Global site tag (gtag.js) - Google Analytics