四个WinAPI测试题

| 以下是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 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是\'sort \\',用于在对象之间交换数据。如果将接收窗口视为\'object \',而发送方(不必是窗口)也视为\'object \',则此方法不成立。 3d。还是如上所述,这取决于您对\'object \'的解释。可以从没有窗口的应用程序发送消息。 4 ..没有。您可以使用SetWindowPos()或更常见的方法 带SW_HIDE的ShowWindow()     

要回复问题请先登录注册