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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 / 10
    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


    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

    - More Tricks to Gain Speed in Programming Con...
    - Easy and Efficient Programming for Contests
    - Preparing For Programming Contests
    - Programming Contests: Why Bother?
    - Polymorphism in C++
    - Overview of Virtual Functions
    - Inheritance in C++
    - Extending the Basic Streams in C++
    - Using Stringstreams in C++
    - Custom Stream Manipulation in C++
    - General Stream Manipulation in C++
    - Serialize Your Class into Streams in C++
    - Advanced File Handling with Streams in C++
    - File Handling and Streams in C++
    - The STL String Class







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek