Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

mcamail2002

mcamail2002 mcamail2002

Niner since 2007

Forum Thread Replies Latest activity
Tech Off POP3 in C# 40
  • Craig Jensen - Windows Embedded for Point of Sale

    Hi,

    I'm building a POS applications for MSR device (this is Megtak device MICR MICRIMAGE RS232 W/3TK MSR ) using Visual Studio 2005, framework 2.0 and the POS .NET SDK 1.12.but when i have run the application there is nothing happing.can u tell me what i did wrong.

    ***************
     OS: Xp with service pack 2
      Vishul Studio 2005
      .Net Framework 2.0
      Installed: Microsoft POS for NET 1.12
      link:
      https://www.microsoft.com/downloads/details.aspx?FamilyID=eaae202a-0fcc-406a-8fde-35713d7841ca&displaylang=en
     Add referance "Microsoft.PointOfService"

    my Code here:
    *************************************
     private PosExplorer myExplorer;
            private Msr myMSR;
           
            public Form1()
            {
               InitializeComponent();
                myExplorer = new PosExplorer(this);
                myExplorer.DeviceAddedEvent += new DeviceChangedEventHandler(myExplorer_DeviceAddedEvent);
                myExplorer.DeviceRemovedEvent += new DeviceChangedEventHandler(myExplorer_DeviceRemovedEvent);
              
            }
    **********************************
     void myExplorer_DeviceAddedEvent(object sender, DeviceChangedEventArgs e)
            {
               
                if(e.Device.Type == "Msr")
                {
                         
                    myMSR = (Msr) myExplorer.CreateInstance(e.Device);
                    lblStatus.Text = "New Msr attached: " + e.Device.ServiceObjectName;

                    myMSR.Open();
                    myMSR.Claim(1000);
                    myMSR.DeviceEnabled = true;
                    myMSR.DataEventEnabled = true;
                    myMSR.DecodeData = true;

                    Update();
                    myMSR.DataEvent +=new DataEventHandler(myMSR_DataEvent);
                }
             }
    ******************************************************
     void myExplorer_DeviceRemovedEvent(object sender, DeviceChangedEventArgs e)
            {
                if (e.Device.Type == "Msr")
                {
                    myMSR.DataEventEnabled = false;
                    myMSR.Close();
                    lblStatus.Text = "New Msr removed";

                }
            }
    *********************************************************
     void myMSR_DataEvent(object sender, DataEventArgs e)
            {
                ASCIIEncoding myEncoding = new ASCIIEncoding();

                txtInput.Text = myEncoding.GetString(myMSR.Track2Data);
                lblStatus.Text = "Data Event";
                Update();
                myMSR.DataEventEnabled = true;

            }
    Regards
    mcamail2002@gmail.com
    ***************************************************************

      

  • Craig Jensen - Windows Embedded for Point of Sale

    Hi,

    I'm building a POS applications for MSR device (this is Megtak device MICR MICRIMAGE RS232 W/3TK MSR ) using Visual Studio 2005, framework 2.0 and the POS .NET SDK 1.12.but when i have run the application there is nothing happing.can u tell me what i did wrong.

    ***************
     OS: Xp with service pack 2
      Vishul Studio 2005
      .Net Framework 2.0
      Installed: Microsoft POS for NET 1.12
      link:
      https://www.microsoft.com/downloads/details.aspx?FamilyID=eaae202a-0fcc-406a-8fde-35713d7841ca&displaylang=en
     Add referance "Microsoft.PointOfService"

    my Code here:
    *************************************
     private PosExplorer myExplorer;
            private Msr myMSR;
           
            public Form1()
            {
               InitializeComponent();
                myExplorer = new PosExplorer(this);
                myExplorer.DeviceAddedEvent += new DeviceChangedEventHandler(myExplorer_DeviceAddedEvent);
                myExplorer.DeviceRemovedEvent += new DeviceChangedEventHandler(myExplorer_DeviceRemovedEvent);
              
            }
    **********************************
     void myExplorer_DeviceAddedEvent(object sender, DeviceChangedEventArgs e)
            {
               
                if(e.Device.Type == "Msr")
                {
                         
                    myMSR = (Msr) myExplorer.CreateInstance(e.Device);
                    lblStatus.Text = "New Msr attached: " + e.Device.ServiceObjectName;

                    myMSR.Open();
                    myMSR.Claim(1000);
                    myMSR.DeviceEnabled = true;
                    myMSR.DataEventEnabled = true;
                    myMSR.DecodeData = true;

                    Update();
                    myMSR.DataEvent +=new DataEventHandler(myMSR_DataEvent);
                }
             }
    ******************************************************
     void myExplorer_DeviceRemovedEvent(object sender, DeviceChangedEventArgs e)
            {
                if (e.Device.Type == "Msr")
                {
                    myMSR.DataEventEnabled = false;
                    myMSR.Close();
                    lblStatus.Text = "New Msr removed";

                }
            }
    *********************************************************
     void myMSR_DataEvent(object sender, DataEventArgs e)
            {
                ASCIIEncoding myEncoding = new ASCIIEncoding();

                txtInput.Text = myEncoding.GetString(myMSR.Track2Data);
                lblStatus.Text = "Data Event";
                Update();
                myMSR.DataEventEnabled = true;

            }

    Regards
    mcamail2002@gmail.com

     


    ***************************************************************