+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 4
    Points: 1,540, Level: 8

    Join Date
    Jul 2014
    Posts
    212
    Helped
    1 / 1
    Points
    1,540
    Level
    8

    Microchip MLA doesn't have C# code

    I am working on USB with MLA from microchip. But it don't have C# code for PC. from where i can get the code bcoz i don't work that much on C#.So if if lower version of MLA have code please share it.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: Microchip MLA doesn't have C# code

    which USB device or host application are you looking at?
    I find the simplest thing is to implement functions to sommunicate with USB in C++ DLL then call that from C# and VB.NET



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 4
    Points: 1,540, Level: 8

    Join Date
    Jul 2014
    Posts
    212
    Helped
    1 / 1
    Points
    1,540
    Level
    8

    Re: Microchip MLA doesn't have C# code

    i think this part is missed i searched all folder but not found. I think it get drop because while installing it gives me some error. i ignor it.
    Please mail me this folder my mail id is ****
    or post here itself.
    Last edited by FvM; 2nd October 2014 at 23:42. Reason: Email deleted



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: Microchip MLA doesn't have C# code

    I built a DLL using C++ using examples from the web, e.g.
    http://msdn.microsoft.com/en-us/library/ms235636.aspx

    as I needed to interafce a PIC24 USB device to C++, C# and VB.NET

    if your target is a C# application it is probably simpler to write the whole thing in C# using Microchips C++ code as a guide

    however, there is a MLA example of C++, C# and VB in USB device hid_custom
    C:\microchip\mla\v2013_12_20\apps\usb\device\hid_c ustom\utilities\plug_and_play_example\windows\src

    the mla directory may be different depending on your version of the MLA

    what particular USB device or host protocol are you interested in ?



  5. #5
    Full Member level 4
    Points: 1,540, Level: 8

    Join Date
    Jul 2014
    Posts
    212
    Helped
    1 / 1
    Points
    1,540
    Level
    8

    Re: Microchip MLA doesn't have C# code

    i am interested in Device protocol in HID class.



    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: Microchip MLA doesn't have C# code

    Quote Originally Posted by ep.hobbyiest View Post
    i am interested in Device protocol in HID class.
    there is C# code for the MLA HID custom device project

    using Visual C# I opened the project
    C:\microchip\mla\v2013_12_20\apps\usb\device\hid_c ustom\utilities\plug_and_play_example\windows\src\ vc#_2005_express\HID PnP Demo.sln

    when built displays
    Click image for larger version. 

Name:	HIDcustom.jpg 
Views:	1 
Size:	13.8 KB 
ID:	109949



--[[ ]]--