September 23rd, 2003, 03:29 AM
-
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
September 23rd, 2003, 05:33 PM
-
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.
September 23rd, 2003, 08:18 PM
-
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?
September 24th, 2003, 03:00 AM
-
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 ??
September 24th, 2003, 10:57 AM
-
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
September 25th, 2003, 04:04 AM
-
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 ?
September 25th, 2003, 01:38 PM
-
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.
September 26th, 2003, 04:26 AM
-
I mean if the DLL is defined as class, it has methods.
so, how can I call this methods ???(I'm wrong perhaps!!!)