Results 1 to 2 of 2

Thread: Converting assembly to COM

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Converting assembly to COM

    VS 2005

    Hi All

    I'm a bit confused by all this.
    I am writing an api which needs to be a COM type so it can be accessed with non managed code. I am not really sure how to progress.

    Basically I have a solution which contains 2 projects. The first project (P1) contains most of the meat with a large number of namespaces while the other (P2) contains a single class which I want to make the public interface. This project references the other.

    How do I progress with this ?
    I realise I have to use the regasm.exe to create a type library for (P2) but what about the reference to the P1 ? What happens to this dll ?

    Can anyone point me in the right direction ?

    Parksie

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Converting assembly to COM

    Look on the internet for COM INTEROP (simple example). That should help, because you could write pages about it.
    In you example P1 shouldn't be referenced to by COM, placing it in the same directory as P2 (or in the GAC) is enough
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width