How do I pass a struct (or class) message back and forth between a C# service and a separate VB 6 ap

Posted by grantjumper on Stack Overflow See other posts from Stack Overflow or by grantjumper
Published on 2010-04-10T22:24:01Z Indexed on 2010/04/10 22:33 UTC
Read the original article Hit count: 186

Filed under:
|
|

I need to pass data between a c# service and a running vb 6 application, considering using Windows Messaging. How do I pass the data back and forth between a C# service and a running vb 6 application? Shortened sample of the data I am passing back and forth is below:

namespace MainSection
{
    public struct Info
    {

    private int _Id;
    private string _TypeCode;
    private float _Calc;
    private DateTime _ProcessDate;
    private bool _ProcessFlag;

    public int Id
    {
        get { return _Id; }
        set { _Id = value; }
    }

    public string TypeCode
    {
        get { return _TypeCode; }
        set { _TypeCode = value; }
    }

    public float Calc
    {
        get { return _Calc; }
        set { _Calc = value; }
    }

    public DateTime ProcessDate
    {
        get { return _ProcessDate}
        set { _ProcessDate = value; }
    }

    public bool ProcessFlag
    {
        get { return _ProcessFlag}
        set { _ProcessFlag = value; }
    }
   }
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb6