#1
  1. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0

    Unhappy COM+ implementation


    Hi

    I want to implement a COM+ object in VC++ code but I don't know how.

    I've an installed COM+ object and i want to use its methods.

    Can u help me please.

    Thank you
  2. #2
  3. I'm Baaaaaaack!
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    5,538
    Rep Power
    244
    To help more we will need example code (be sure it compiles and is enclosed in "code" tags).

    Generally speaking, VC++ is quite good at displaying the class's methods/variables in auto-completion mode. I have used that as a way to explore the functionality of an object a number of times. It doesn't always work (I find it is problematic in header files for some reason). There should be documentation for the object somewhere, look that up. If it is private, third-party, ask them for documentation. There are also supposed to be tools to extract that information and display it graphically for you, you can google and try some out.

    My blog, The Fount of Useless Information http://sol-biotech.com/wordpress/
    Free code: http://sol-biotech.com/code/.
    Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html.
    Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html.
    LinkedIn Profile: http://www.linkedin.com/in/keithoxenrider

    It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it.
    --Me, I just made it up

    The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.
    --George Bernard Shaw
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    Are you working with MFC and are trying to have the object as part of a view or dialog? Or are you trying to host an object that isn't associated with any particular gui feature?
  6. #4
  7. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0
    I've a DLL that i must integrate in vc++ program.
    I know the different methods of this DLL but the problem is that I don't know how to include this DLL ??
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    The easiest way to pull a dll into a program is to the #import pre-processor directive that VS recognizes. There are other ways too though...a quick search pulled up an article at flipcode that seems pretty well written: http://www.flipcode.com/tutorials/tut_dll01.shtml
  10. #6
  11. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0
    thank u for your help.

    I've another question:

    In the example in the URL, it calls function from the DLL but I want to know how to call methods from the DLL ?
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    I'm sorry, I don't really understand what you mean by method. A method is a function, though usually the word is reserved to describe a member function of an object.
  14. #8
  15. Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0
    I mean if the DLL is defined as class, it has methods.
    so, how can I call this methods ???(I'm wrong perhaps!!!)

IMN logo majestic logo threadwatch logo seochat tools logo