Expose an event from a running exe "windows forms application"

Posted on 2007-08-02
Last Modified: 2013-11-26
How to call into a running exe and invoce a procedure. Like an active x exe server used to be in vb.
I have an exe that, while not running as a service, is allways running. I need to be able to call some exposed objects from vbscript  eg  set something = CreateObject("myproject.mystuff").
I understand that this can be done using an dll/windows controll library but thats not what i want to do, i want to call into a live exe that will do some processing and hand me back a result without affecting the running state of the exe.
Question by:HarperBen
    LVL 19

    Accepted Solution

    Hello HarperBen,

    You might want to look at .NET Remoting:

    Or, if you are looking int othe future, Windows Communication Foundation (WCF)


    LVL 4

    Author Comment

    Thanks Rimvis,
    I have see the the first link, i dont think its what i am looking for.
    Does anyone have any experience in having created an exe in .net that can be called in the following way:   set something = CreateObject("myproject.mystuff").

    I am sure it cannot be so difficult, i hope that i am not reduced to monitoring a directory for text file instructions!
    LVL 4

    Author Comment

    anyone got any further Ideas or code samples???

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now