QA

   

Q&A

Q1:

Is it possible to create my own custom attributes?

A1:

Yes, it is. The CustomAttributes example provided with Visual C++ .NET demonstrates how to do this.

Q2:

Can attributes be used in native (straight) C++?

A2:

Yes, it is possible, but there aren't many attributes available for this. The source code for this book contains a native C++ project using attributes for event handling.

Q3:

Can you cut and paste the source code from a merged source file and use that code in place of attributes?

A3:

Yes, you can, but it is not recommended. Keep in mind that if you need to change the code later, it will be much more difficult using source code than it would be to just change an attribute.


   
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

Similar book on Amazon

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