Re: Starting COM development...
"Inside COM" by Dale Rogerson is a nice introductory book
for COM. You shouldn't have difficulty reading through it.
It assumes minimal Windows knowledge IIRC, but you'll
probbaly need some. For Windows development the best
book is "Programming Windows" fifth edition by Charles
Petzold, but it covers stuff way beyond your needs. A book
to introduce you to ATL after you get familiar with COM is
"Beginning ATL3 COM Programming" by Dr Richard Grimes
et al, Wrox Press.
For your task you need to learn Automation in addition to
COM, and there's no definitive book for that. I'd recommend
chapters 13-14 of "Inside OLE" by Kraig Brockschmidt.
ATL books cover the ATL angle but don't explain the basics
particularly well...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Volker Hetzer" <firstname.lastname@ieee.org> wrote in message
news:eee501$rkj$2@nntp.fujitsu-siemens.com...
Hi!
I'd like to start with COM development using C++ but I'm totally at a loss
about how to go about it.
I've got VS 2005 but how do I create a COM component with it?
I've got Inside COM and ATL internals but they assume a lot of basic
knowledge that I don't
have. I do know C++ (from the unix world) but no windows programming apart
from a bit of
VBScript.
So, how do I actually create a simple com component with, let's say, one
function that
adds two integer numbers and returns the result? No threading, no server
or anything fancy.
I'd like to call that component from VBScript later on, like
set MyObject=createobject("MyComponent.Adder")
msgBox MyObject.add(1,1) -> displays "2"
And what is the result of the development? A file called adder.com or
something like it?
Lots of Greetings!
Volker
--
For email replies, please substitute the obvious.