×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Begining with COM -- Books/Doc to read

Begining with COM -- Books/Doc to read

Begining with COM -- Books/Doc to read

(OP)
I would like to know what books or other documentation should read someone (by example me...) who need to use COM (and not just a little) in his programms, when he does never have use COM before.

Also, if someone know how to transform a existing not-COM using project to a COM using project, I will appreciate (I have got compiler error when trying to use COM object like IShellLink or simply CoInitializeEx :
error C2065: 'CoInitializeEx' : undeclared identifier
but I include the header :
#include "objbase.h"
Probably because _WIN32_DCOM is not define, so can I do this manually or with a wizard/dialog and where (in the files or the menus) should I do this ?
).

Thanks,

David.

RE: Begining with COM -- Books/Doc to read

David,

In your CWinApp classes file

#include <afxdisp.h>

Then in the InitInstance() function

if ( !AfxOleInit()){
AfxMessageBox("Failed to initialize COM");
}

For anyone beginning with COM and primarily using C++ I highly recommend Inside COM by Dale Rogerson ISBN: 1572313498

Hope this helps
-pete

RE: Begining with COM -- Books/Doc to read

(OP)
Hello Pete,

I'm a little surprise because the book you recommand dates from january 1996. And 4 years make a lot of new things in computers usually, no ? Or maybe COM doesn't change much since ?

David.

RE: Begining with COM -- Books/Doc to read

David,

Yes, you are correct, I'm very glad to see you are paying attention. COM is a huge subject, if you are just looking for some quick 'how to' examples etc then you want something else. I highly recommend another dated book "The Essence of COM and ActiveX" by David Platt.

Again COM is a LARGE subject so multiple books will probably be required to develop a good understanding and working knowledge. There are also excellent and newr books from other authors like Don Box that cover recent topics like COM+.

The book I mentioned is more in response to this statement from your post:

> when he does never have use COM before.

Inside COM provides a great C++ ground up introduction into the architecture of COM.

Good luck
-pete

RE: Begining with COM -- Books/Doc to read

(OP)
Hello pete,

thanks for your advices.

I'm not looking for 'how-to' examples in a book, since such examples can be found on the Internet. No, I prefer a book that explain the reason(s) and the way of COM in order to not simply do it, but also, understand what I am doing. So I will look for this "Inside COM" on amazone.

Thanks again,

David.

RE: Begining with COM -- Books/Doc to read

Hi David,
another good one is Inside Distributed COM by Guy and Henry Eddon. ISBN 1-57231-849-X

RE: Begining with COM -- Books/Doc to read

(OP)
Hi Brother,

I have already buy the book Inside COM at amazone, and by the way the title you give I can't found but :

Inside Distributed Compilers

by Eddon, Guy
 
Publisher's price: £29.99

Paperback ¦ 552 pages ¦
Microsoft Press International ¦ 1998
ISBN 157231849X

David.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close