COM compatible C++ objects how to ?

M

Mel

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
 
N

Niklas Norrthon

Mel said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top