如果在一个函数中打开连接,并且只将句柄存储在一个本地变量中,那么当函数返回时,连接将被关闭。
If you open the connection from within a function, and only store the variable in a local variable, the connection will be closed when that function returns.
这些函数以环境句柄、连接句柄、语句句柄或描述符句柄作为输入参数,返回与上一次使用该句柄作出的函数调用相关的诊断信息。
These functions take environment, connection, statement, or descriptor handles as input and return the diagnostic information related to the last function call made using that handle.
为了简单起见,首先创建一个名为build_answers的helper函数,当给定一个数据库句柄或调查ID后,该函数会输出该调查所有答案的XML(参见清单4)。
To make it easier on yourself, first create a helper function called build_answers that, when given a database handle and a poll ID, outputs the XML for all the answers to that poll (see Listing 4).
函数功能:该函数可以获得与调用线程的消息队列相关的活动窗口的窗口句柄。
The return value is the handle to the active window attached to the calling thread's message queue. Otherwise, the return value is NULL.
尽管这些函数被认为是GDI的一部分,但是并不像大多数gdi函数,它们不需要关联设备句柄。
Although these functions are considered to be part of GDI, unlike most GDI functions they do not require a handle to a device context.
这个函数是一个真正的消息句柄,不是虚函数。
This function is really a message handler, not a virtual function.
这个函数是一个真正的消息句柄,不是虚函数。
This function is really a message handler, not a virtual function.
应用推荐