Writing a VERY simple COM Client
-
Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy
-
Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy
Intro to COM part 1 perhaps? --Mike-- My really out-of-date homepage He who laughs last, didn't get the punchline and is just laughing so he won't look silly. Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.
-
Hey all, I'm pretty new to COM programming in C++ (been doing it in VB for quite a while). I'm looking for an absolutely bare-bones, "instantiate one object, make one method call and spit out the results" snippet of code showing me how to write a C++ client app that uses a COM object. Like I said, doesn't have to be anything spectacular, I just want to see the steps involved in using a COM object in C++. I searched the site for simple examples, and even searched on the web some, but didn't find anything (if you know of any good examples, I would appreciate the URLs). Thanks in Advance Jeremy
If you ever are interested in getting into DCOM, I have a start-to-finish tutorial on this site. It is very easy to follow, and is simple. All you do is write a COM object with one method. You call the method, and the method tells you, "Hello, World!". The tutorial starts at http://www.codeproject.com/com/HelloTutorial1.asp. I really recommend you follow straight through and build things yourself while following along. Hope this is a good intro! Really, the usefulness of COM comes out in doing things between more than one computer, but you can put both the "server" and the "client" together on the same computer and you still get everything. Hope it helps! :) Sincerely Yours, Brian Hart "And that's the news from Lake Wobegon, where all the women are strong, the men are good-looking, and the children are above-average." - Garrison Keillor