Solved

COM And Choosing an Appropriate Programming Language

Posted on 2006-07-07
2
340 Views
Last Modified: 2013-11-25
I have some questions concerning the use of COM.  For someone used to programming in C,
what is the best route in understanding and programming COM objects?  Should I begin
learning C++ /MFC or is there another language that makes programming COM objects
easier?  Also, if I choose C++ /MFC to code my COM objects, can I keep this code
separate and still use the bulk of my code that is written in C?  Or do I have to rewrite everything
in C++ /MFC?
0
Comment
Question by:jtrades
2 Comments
 
LVL 3

Accepted Solution

by:
Santino_k earned 250 total points
ID: 17064105
COM is a specification. It can be implemented using both C and C++. So you can create COM components in both C and C++ and also other languages like VB, java Etc.
Most COM components that I have seen are written in C++, ATL and VB. The components I write are in ATL.

To start with, if you want to understand COM, get a good book (you can start with "Inside COM" and move on to "Essential COM"). Later, implement simple component using C++. Gradually move to ATL because with ATL you can create COM components much faster compared to core C++. My blog might help you with books and online URL's - http://blogs.wdevs.com/sohail/archive/2004/11/16/1149.aspx

You can re-use your C code but if you decide to use C++ or ATL, you will deal with Object Oriented way of coding and this may lead to changes in the way you reuse your code.

Let me know if you need more help on this.
0
 
LVL 7

Expert Comment

by:yotamsher
ID: 17065845
just one more small advise:
for using (or testing) COM use vb

good kuck
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now