Hour 19

   

1:

How are a managed event and a kernel object event different?

A1:

Managed events do not use operating system specific objects. Any object can create and fire managed events, but kernel object events require the use of a certain object that must be signaled in order for that event propagate to appropriate handlers.

2:

What happens to a thread if it is in the Stopped state and is restarted with a Start function call?

A2:

Your application will throw an exception. Once a thread is in the Stopped state, it cannot be restarted.

3:

What is the difference between a thread delegate and a thread callback function used in the WIN32 API? What advantages does the delegate method give you?

A3:

Thread delegates are contained within the class scope they are created in. In other words, the delegate has full access to the public and private variables within the class. WIN32 callback functions must either be global functions or static member functions within a class. In both cases, you do not have access to class member variables.


   
Top


Sams Teach Yourself Visual C++. NET in 24 Hours
Sams Teach Yourself Visual C++.NET in 24 Hours
ISBN: 0672323230
EAN: 2147483647
Year: 2002
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net