四个WinAPI测试问题
下面是一个WinAPI测试小测验的摘录。 我做了很多研究,但没有找到这些问题的答案:四个WinAPI测试问题,winapi,messages,Winapi,Messages,下面是一个WinAPI测试小测验的摘录。 我做了很多研究,但没有找到这些问题的答案: 1. Which statement, regarding dynamic link libraries (DLL), is WRONG: a) DLLs can be used to exchange data between applications in Windows b) DLLs can call Windows modules c) DLLs can use DOS
1. Which statement, regarding dynamic link libraries (DLL), is WRONG:
a) DLLs can be used to exchange data between applications in Windows
b) DLLs can call Windows modules
c) DLLs can use DOS file functions
d) DLLs can control a user dialog in Windows
2. Which statement, regarding the messages in Windows, is WRONG:
a) messages can be exchanged between the objects of an application
b) messages can be generated when events happen
c) messages can be exchanged between applications
d) messages can be exchanged with the help of temporary queue storage
3. Which statement, regarding the system message queue, is CORRECT:
a) it serves for communication and exchange of messages between applications
b) it serves for exchange of messages between common resources
c) it serves for temporary storage of messages from the peripheral devices
d) it serves for communication and exchange of messages between window objects
4. In order to hide a window or a control, the following function is used:
a) SetWindowHide
b) HideWindow
c) UnshowWindow
d) DeleteWindow
我绝对肯定问题4是错的。
正确答案是ShowWindow
我几乎可以肯定2根本没有正确的答案
我没有关于这些问题的其他细节或澄清。- 1c。DLL主要用于共享公共代码,但其中存储的对象仅在当前映射DLL实例的内存空间中本地可用
- 2a。这个问题的答案取决于你对这个问题的解释。严格地说你可以。要发送消息,您只需要接收端有一个带有消息循环的窗口来发送消息。例如,WM_COPYDATA是用于在对象之间交换数据的“排序”。如果您将接收窗口视为“对象”,而发送方(不需要是窗口)也视为“对象”,则这不成立
- 3d。同样,如上所述,这取决于您对“对象”的解释。可以从没有窗口的应用程序发送消息
- 四,。。没有一个您可以使用SetWindowPos()或更常用的方法 带SW_隐藏的ShowWindow()