Results 1 to 2 of 2

Thread: Allowing calls from unmanaged code

  1. #1

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

    Allowing calls from unmanaged code

    Hi All,

    I have an application which has been succesfully installed on a number of different client machines.

    The problem I now have is that I have been asked to allow third party applications, possibly written in a non .net language set to plug into my application and execute some of the code. Just a handfull of properties and half a dozen methods.

    Now I can wrap up these properties/methods, make them public and have them in their own project which will be part of my solution but I have no idea where to go from here.

    How do I make this portion of my application accesible to a third party application written in unmanaged code ?

    Thanks In Advance

    Parksie

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Allowing calls from unmanaged code

    You can expose your assembly to COM by setting a property or two. You can even add a ComClass to make your type/assembly look like a COM object, although I've never had need to do so. I'd suggest a bit of reading, but I do know it's not especially difficult.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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