COM compatible C++ objects how to ?

Discussion in 'C++' started by Mel, Dec 6, 2005.

  1. Mel

    Mel Guest

    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
     
    Mel, Dec 6, 2005
    #1
    1. Advertising

  2. Mel

    Guest

    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-lite/how-to-post.html#faq-5.9

    Gavin Deane
     
    , Dec 6, 2005
    #2
    1. Advertising

  3. "Mel" <> 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
     
    Niklas Norrthon, Dec 7, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ravikanth[MVP]
    Replies:
    1
    Views:
    365
    Jackal
    Jul 22, 2003
  2. J Landeros
    Replies:
    1
    Views:
    361
    Victor Garcia Aprea [MVP]
    Oct 23, 2003
  3. Bucko
    Replies:
    1
    Views:
    378
    Steve C. Orr [MVP, MCSD]
    Nov 3, 2003
  4. 7stud
    Replies:
    11
    Views:
    729
    Dennis Lee Bieber
    Mar 20, 2007
  5. pantagruel
    Replies:
    0
    Views:
    260
    pantagruel
    Feb 17, 2006
Loading...

Share This Page