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. Advertisements

  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. Advertisements

  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. Advertisements

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. bigbinc
    Replies:
    3
    Views:
    552
    Michael Borgwardt
    Nov 18, 2003
  2. Simon Elliott

    Inheritance of objects within objects

    Simon Elliott, Dec 10, 2004, in forum: C++
    Replies:
    2
    Views:
    454
    Simon Elliott
    Dec 10, 2004
  3. =?Utf-8?B?c3RldmVuIHNjYWlmZQ==?=

    form objects into class objects

    =?Utf-8?B?c3RldmVuIHNjYWlmZQ==?=, Jul 5, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    622
    =?Utf-8?B?c3RldmVuIHNjYWlmZQ==?=
    Jul 6, 2006
  4. Replies:
    4
    Views:
    979
    Joseph Kesselman
    Aug 10, 2006
  5. Replies:
    1
    Views:
    679
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Aug 29, 2006
  6. Steven T. Hatton

    C++ objects that act like Java/C# objects.

    Steven T. Hatton, Jun 27, 2005, in forum: C++
    Replies:
    8
    Views:
    495
    Steven T. Hatton
    Jun 28, 2005
  7. 7stud
    Replies:
    11
    Views:
    1,034
    Dennis Lee Bieber
    Mar 20, 2007
  8. pantagruel
    Replies:
    0
    Views:
    418
    pantagruel
    Feb 17, 2006
Loading...