Buch, Englisch, 408 Seiten, Book w. online files / update, Format (B × H): 191 mm x 235 mm, Gewicht: 737 g
Buch, Englisch, 408 Seiten, Book w. online files / update, Format (B × H): 191 mm x 235 mm, Gewicht: 737 g
ISBN: 978-1-893115-76-7
Verlag: Apress
Knowing how and when to work in C++ is the key to building better, more efficient Windows applications. This book teaches you how to use C++ to enhance your Visual Basic application—swithout rewriting them from the ground up. In this book, you will learn to write DLLs that use the performance and capabilities of C++, which provide access to APIs not easily supported by VB. Using C++ and the ATL (Active Template Library), you can even write ActiveX components that dont require a huge runtime library.
Writing from the perspective of an advanced VB programmer—and using his own learning process as the framework—author Jonathan Morrison teaches you how to harness the development power of C++. Beginning with an overview of the ways in which C++ complements VB, he moves on to cover the VC++ development environment that most VB programmers will turn to first (Visual Studio), exploring a wealth of topics including the differences between VB and C++ compilers, the C preprocessor, and the process of memory management in C++.
In the second half of the book, Morrison discusses the basics of the C++ language, including data and variables, operators, loops, and control statements. He then covers pointers, classes, and templates. The book also contains comprehensive coverage of VB and C++ DLLs, how to use C++ DLLs with VB programs, the ATL, and COM objects.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
1 Why C++? (And Why with Visual Basic).- 2 Where Do We Start?.- 3 How Do You Do That Voodoo That You Do?.- 4 C++ 101.- 5 It’s Not Polite to Point.- 6 Classes.- 7 Templates.- 8 Putting It All Together.- 9 What’s the DLL, Man?.- 10 Your First Real DLL.- 11 An ATL Primer.- 12 The COM Project.- 13 Advanced Topics.- Appendix A A Thread to Visual Basic.- Just Because You Can, Doesn’t Always Mean that You Should.- A Quick Review of Multithreading.- The Threading Contract.- The CreateThread API.- The CreateThread API Revisited.- Conclusion.- Appendix B Visual Basic Strings: The BSTR Data Type.- What Is a BSTR?.- Using_bstr_t.- Conclusion.- Appendix C Article 3. Strings the OLE Way.- Unicode Versus ANSI.- What Is a BSTR?.- The String Class.