Hour 8

   

1:

Why would you want to include a .resx file in your project rather than just including the already compiled .resources file?

A1:

In case you need to make changes to the resources contained within the .resx file. You can't make changes to a compiled .resources file.

2:

What is an advantage of using managed resources compared to unmanaged resources? What are some disadvantages?

A2:

Managed resources are handled by the common language runtime and thus gain all the advantages that it entails. However, there is currently more work that needs to be done to Visual C++ .NET to make working with managed resources easier.

3:

Can you use the GetObject function within the ResourceManager class to retrieve a string resource?

A3:

Yes, you can. The GetString function is just a modified GetObject call that automatically performs the cast from the Object type to the String object. You can call GetObject and cast to a String object to retrieve a string resource.


   
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