Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > COM compatible C++ objects how to ?

Reply
Thread Tools

COM compatible C++ objects how to ?

 
 
Mel
Guest
Posts: n/a
 
      12-06-2005
am desparately looking for a "SIMPLE" C++ program that explains how to

create a COM object
please help if you know of such BEAST !


thanks

 
Reply With Quote
 
 
 
 
deane_gavin@hotmail.com
Guest
Posts: n/a
 
      12-06-2005

Mel wrote:
> am desparately looking for a "SIMPLE" C++ program that explains how to
>
> create a COM object
> please help if you know of such BEAST !


COM is a Microsoft concept, not a concept that C++ knows anything
about. You'll need to ask a COM programming newsgroup.

Purpose of comp.lang.c++

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Gavin Deane

 
Reply With Quote
 
 
 
 
Niklas Norrthon
Guest
Posts: n/a
 
      12-07-2005
"Mel" <(E-Mail Removed)> writes:

> am desparately looking for a "SIMPLE" C++ program that explains how to
>
> create a COM object
> please help if you know of such BEAST !


struct COM
{
};

COM global; // global COM object

int main()
{
COM local; // local COM object
COM* ptr = new COM; // COM object on free store.

delete ptr;
return 0;
}

Simple enough?

/Niklas Norrthon
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
class objects, method objects, function objects 7stud Python 11 03-20-2007 06:05 PM
making ie compatible code firefox compatible using Greasemonkey? pantagruel Javascript 0 02-17-2006 02:26 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
objects of objects, vectors and sessions bigbinc Java 3 11-18-2003 09:26 AM



Advertisments