Workshop

The Workshop provides quiz questions to help solidify your understanding of what was covered in this hour. Answers are provided in Appendix A, “Quiz Answers.”

Quiz

1:If you wanted to use MessageBox rather than the ANSI or Unicode functions, what changes need to be made to the DllImport attribute?
2:In an unmanaged class, are you responsible for freeing any memory that is allocated, regardless of the variable type?
3:If a DLL exports a C++ class that you wish to use within managed code, do you have to create definitions for each of the member functions within that class as well as the definition for the class?

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.