Windows核心编程 (5)

线程同步工具包

1.The CreateFileMapping function creates a named or unnamed file-mapping object for the specified file.
 
2.The MapViewOfFile function maps a view of a file into the address space of the calling process.
 
3.The UnmapViewOfFile function unmaps a mapped view of a file from the calling process's address space.
 
4.The GetModuleFileName function retrieves the full path and filename for the executable file containing the specified module.
 
5.指向const的指针:const int* X;int const* X;
  指向int的const指针:int* const X;
  const declaration
  member-function const
  When modifying a data declaration, the const keyword specifies that the object or variable is not modifiable. When following a member function's parameter list, the const keyword specifies that the function   doesn't modify the object for which it is invoked.
 
6.C++不允许运算符重载 = 被继承。
 
7.重载的++和--号运算符出现了两难选择的局面,这是因为希望根据它们出现在它们作用的对象前面(前缀)还是后面(后缀)来调用不同的函 数。解决是很简单的,但一些人在开始时却发现它们容易令人混淆。例如当编译器看到++a(先自增)时,它就调用operator++(a);但当编译器看 到a++时,它就调用operator++(a,int)。即编译器通过调用不同的函数区别这两种形式。在UNARY.CPP成员函数版中,如果编译器看 到++b,它就产生一个对B::perator++( )的调用;如果编译器看到b++,它就产生一个对B::operator++(int)的调用。除非对于前缀和后缀版本用不同的函数调用,否则用户永远看 不到它动作的结果。然而,
实质上两个函数调用有不同的署名,所以它们和两个不同函数体相连。编译器为int参数(因为这个值永远不被使用,所以它永远不会被赋给一个标识符)传递一个哑元常量值用来为后缀版产生不同的署名。
 
8.The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons.
 
9.The QueueUserAPC function adds a user-mode asynchronous procedure call (APC) object to the APC queue of the specified thread.
 
10.
WaitForMultipleObjects与WaitForMultipleObjectsEx的不同之 处:WaitForMultipleObjectsEx可以等待An I/O completion routine or asynchronous procedure call (APC) is queued to the thread.
 
11.The WM_USER constant is used by applications to help define private messages, usually of the form WM_USER+X, where X is an integer value.
 
12.The SetDlgItemInt function sets the text of a control in a dialog box to the string representation of a specified integer value.
 
13.The SetDlgItemText function sets the title or text of a control in a dialog box.
 
14._tcstok Find the next token in a string.
 
15.atof, atoi, _atoi64, atol
Convert strings to double (atof), integer (atoi, _atoi64), or long (atol).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值