面试时最经常被问到的问题(Frenquently asked interview questions)之Misc. Topics篇[2]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 mxclxp 的 blog

windows - multithreading and multitasking o.s     dos is stranger to these concepts.

traditional dos programming is procedural, meaning that your program starts at one place, and steps through the code sequentially.

windows programming is event-based, meaning that each time an event (like a button-click) occurs; a handler is invoked to produce a response. the difference can be frustrating, since in event-driven code you can inadvertently have several functions running simultaneously on the same data.

3what is the advantage of windows?

gui, multitasking, multithreaded o.s., you can also add: supports a vast variety of devices and has a large base of developers and software.

4what does winmain and wndproc do?

wndmain is the entry point for a win32 app (like main() would be in a dos/unix app). it is used in almost exactly the same way, except that you pass it a lot of worthless params that your code probably won't use anyhow.

wndproc (aka "window procedure") is a function that will be run by your program to process events that occur within it. the wndproc is specified when you call createwindow() and usually consists of several nested switch() statements.

5how does user input are trapped in windows?

6define and explain com.

com is a binary standard on microsoft (and some unix platforms) that enables objects to interoperate in a networked environment regardless of the language in which they were developed or on which computers they reside. com allows an object to expose its functionality to other components and to host applications. it defines both how the object exposes itself and how this exposure works across processes and across networks. com also defines the object's life cycle.

7what is iunknown and what are its three parts?

iunknown is the basic com interface on which all others are based on.
the three methods of iunknown are
1) queryinterface
2) addref
3) release

本文关键:面试时最经常被问到的问题(Frenquently asked interview questions)之Misc. Topics篇
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top