Conclusion

< BACK  NEXT >
[oR]

This chapter has shown several mechanisms for using COM components from your applications. First, COM interfaces were accessed directly using CoCreateInstance, AddRef, Release, and QueryInterface. Next, smart pointers were used to alleviate the responsibility of managing reference counting. Automation provides a structure-based calling mechanism that allows applications a non-function-based mechanism for calling functionality in an Automation object. Code for calling IDispatch::Invoke directly was shown and then the MFC COleDispatchDriver derived classes were used to make calling Automation objects easier.

Throughout this chapter, examples showing the accessing of Pocket Outlook functionality through COM and Automation interfaces were presented. Wherever possible an application should place contact information in Pocket Outlook rather than maintaining the data in separate databases.


< BACK  NEXT >


Windows CE 3. 0 Application Programming
Windows CE 3.0: Application Programming (Prentice Hall Series on Microsoft Technologies)
ISBN: 0130255920
EAN: 2147483647
Year: 2002
Pages: 181

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