C++
  Home arrow C++ arrow Your First COM Client In Visual C++
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C++

Your First COM Client In Visual C++
By: Neville Mehta
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2002-08-04

    Table of Contents:
  • Your First COM Client In Visual C++
  • Our Project
  • Steps 3 to 7
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Your First COM Client In Visual C++


    (Page 1 of 4 )

    Interested in making your own COM client in C++ to call a DLL written in Visual Basic? In this article Neville provides us with an excellent example using credit card validation.
    Let me explain what we are going to learn in this article. As you know, COM servers can be created in various languages and can also be used in various languages. Today we will learn how to use COM servers in VC++. Yes, it means that we will create a COM client in VC++. Also please note that I am not going to instruct you on how to create a COM component. You must already have a COM server created in the form of a Dynamic Link Library (dll) or and Executable (exe). This doesn't mean I am not going to discuss the COM server; I will show you how to build the client but I will focus more on creating the client, as that's what this article is all about.

    This article was written for the already experienced programmers who are used to creating and using COM components in languages other than VC++. If you know what I am talking about maybe you could create a simple Dynamic Link Library (dll) in VB (which is so easy to do) and use it in VC++ following the instructions given in this article. 

    You should have worked with VB and VC++ before, so that you can understand the basic code included in this article. An intermediate level of expertise for each will suffice.

    More C++ Articles
    More By Neville Mehta


     

    C++ ARTICLES

    - Brief Introduction to the STL Containers
    - The Standard Template Library
    - Templates in C++
    - C++ Programmer Alerts
    - C++ Programming Tips
    - First Steps in (C) Programming, conclusion
    - First Steps in (C) Programming, continued
    - First Steps in (C) Programming, introduction
    - C++ Preprocessor: Always Assert Your Code Is...
    - C++ Preprocessor: The Code in the Middle
    - Programming in C
    - Temporary Variables: Runtime rvalue Detection
    - Temporary Variables: Chasing Temporaries Away
    - Temporary Variables: Temporaries Are Not Nec...
    - Temporary Variables: Keep Your Values Close,...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway