Re: Confused Beginner Trying To Migrate From COM

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 05/28/04


Date: Fri, 28 May 2004 12:22:29 -0400

Ian,

    If you want the path of least resistance, then I would recommend that
you use COM interop. If you have a service which is accessible through COM
objects, then you should just set a reference to the COM objects that you
would use on the client side (through VS.NET, or by using the TLBIMP program
to create a Runtime Callable Wrapper which can be referenced) and then make
the same calls that you would make normally.

    Assuming that you don't want to change existing service code, this is
probably the best way to currently go.

    Is what I detailed the way you have it setup? Are you using DCOM, or
anything of that nature?

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
<ianLOSEatTHEaltispartnersCAPS.com> wrote in message
news:OkxiKzMREHA.3124@TK2MSFTNGP12.phx.gbl...
>    Hello,
>
>      First and foremost appols for what must be the n-billionth "new
> programmer" post you've had but if someone could see their way clear to
> helping me, or just recomending some reading I would be most grateful.
>
>      I'm trying to come forward from the age of C++ services and COM
> object interfaces into the sparkling new .NET world. Could you explain
> to me how I can accomplish my favourite old task of taking a service
> which maintains internal variables as a result of its deliberations, and
> making some of its data access methods available to other .NET
> applications such as ASP webpages.
>
>         Ian
>
> "There's no such thing as a stupid question. Only stupid people asking
> them!"
>


Relevant Pages

  • Problem with InterOp of the MSI.DLL with VB.NET
    ... I'm not a hardcore .NET InterOp guy, basically I add in the reference, and ... Let me explain the problem first, some of this is MSI specific but my ... problem comes in the InterOp of the MSI automation objects. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Why C#?
    ... Alvin Bruney ... say one language handles COM Interop better than the other. ... pass by reference, C# stumbles because these objects require a reference ... torture for C# developers building real world Office apps in .NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: giving interop a strong name
    ... Correct Nicholas, and Dave, if you want to learn more about using TLBIMP, ... SN, TLBEXP, and REGASM (the command line Interop tools), you can check out ... > create the interop assemblies yourself. ... > (depending on the reference you want to add). ...
    (microsoft.public.dotnet.languages.csharp)
  • Excel/Word interop for both Office 10 & 11
    ... I am working on an application that uses interop to do some simple operations ... with both Excel and Word. ... I have most of functionality working, ... single reference to Microsoft.Office.Core is added which is different than ...
    (microsoft.public.dotnet.general)
  • Re: Enumerations in fortran 2003
    ... >>> Does C interop pass variables by value to C functions? ... >> C interop rule for variables at all; ... by reference: it makes a temporary of the type and KIND ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)