"This book takes you to places that no other book on VB and COM has ever dared to go. If you're a Visual Basic developer who refuses to recognize the commonly accepted limitations of VB, this book is definitely for you. You'll learn programming techniques that will give your applications unbelievable boosts in performance and flexibility."
In Advanced Visual Basic 6, leading Visual Basic expert Matthew Curland demonstrates powerhouse techniques programmers can use to write high-performance, robust, and reusable VB code. Readers learn how to leverage the close relationships between VB, COM, and OLE Automation, extending the envelope of VB's capabilities and building high-quality, object-based systems.
Key topics include how to:
- Control VB array variables explicitly to directly access arbitrary memory locations
- Call pointers to standard, cdecl, and class module functions
- Aggregate complete interface implementations into any VB object
- Override functions on any interface, including those implemented automatically by VB
- Turn any user-defined type into a lightweight COM object
- Minimize memory usage in systems with a large number of objects
- Safely create and manage threads in ActiveX EXEs and DLLs
- Interact with messages to customize windowed and windowless UserControl objects
The web site accompanying this book contains extensive source code samples to enable all techniques without external DLLs. It also provides integrated type library add-ins for creating and editing referenced libraries, modifying binary compatibility files, and customizing the type libraries that VB generated for ActiveX components.
With this compendium of best practices, sophisticated techniques, and valuable utilities, VB programmers will gain a deeper understanding of VB's inner workings and be able to extend its object-oriented capabilities.
Table of contents
1. Building Blocks.
2. Leveraging Arrays.
3. IUnknown: An Unknown Quantity.
4. Binding Functions to Objects.
5. Object Design Constructs.
6. Circular References.
7. External Object Creation.
8. Lightweight COM Objects.
9. Large Systems of Objects.
10. VB Objects and the Running Object Table.
11. Calling Function Pointers.
12. Overriding Functions.
13. Threads in VB.
14. Strings in VB.
15. Type Libraries and VB.
16. Controlling Windows.
Appendix: VBoost Reference.
All the material you need to teach your courses.Discover teaching material