finally I could find a library in order to work with usb very easily here is the library itself.usb hid can be downloaded here which is written in c#.usb pic side can be downloaded here which is made which ccs.this code is not complete and is just for learning how...
[Read More]
How to import dll C#
make a console project and paste the code.here is the code :using System;using System.Runtime.InteropServices;class Example{// Use DllImport to import the Win32 MessageBox function.[DllImport("user32.dll")]static extern int MessageBox (IntPtr hWnd, String text, String caption, uint type);static void Main(){ // Call the MessageBox function using platform invoke. MessageBox(new IntPtr(0), "Hello, World!", "Hello Dialog",...
[Read More]
Where to download C#
I use Microsoft Visual C# 2008 Express Edition with SP1 which can be freely downloaded from here.
hiddemo.exe and OScope.exe
this file is compatible with the example ex_usb_hid.c which is mentioned in ccs:CCS DELPHI HOST DEMO
USB test with pic18f4550
just program .hex file to the chip the code was written in mcc18 :Generic HID pic sideGeneric HID pc side
[Read More]