Leandro,
Assuming you have a managed representation of the interface that the
COM+ component uses, you can make a call to the static GetTypeFromCLSID or
GetTypeFromProgId methods on the Type class. These types allow you to
specify the server on which to get the types for (in case it is a different
machine than the current one).
Once you have the type, you can pass that to the static CreateInstance
method on the Activator class to create an instance. You will have to cast
it to the appropriate type, or the interface that the COM+ object exports in
order to use it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Ing. Leandro Pérez Guió" <lp****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello people:
I'm having trouble because i've a 3-tier App and i wanna use a COM+
component localizated in the 2-tier, in a Server called X.
And then the question....
In VB.net exists a function called CreateObj and i could'nt find the
equivalent in Csharp.net.
Could any body help me?
Thanks in advanced.
Leandro