RE: Ports
In C we are using outportb (Addr,data) to read data from particular address;
what is the option in VC++.
Actually i need to read data from USB port if you have ant tutorial please
provide me.
Hi,
If you want to perform USB communication you need a USB device driver.
It is not possible to directly read and write to or from a USB port. IT
simply doesn't work that way.
If the device is a standard device you can access it through the relevant
API (the serial port api for example, if the device is a USB to serial
converter).
if the device is not a standard device, the manufacturer normally
distributes a device driver and an API for you.
if the device is custom made and is not handled by a standard windows
driver, you need to program your own USB device driver.
see my articles on www.codeproject.com for more information about this:
http://www.codeproject.com/system/kmdf_osr_usb_fx2.asp
http://www.codeproject.com/system/wdf_kmdf_basic.asp
you can then use the device driver through the normal CreateFile,
DeviceIoControl, ReadFile, WriteFile and CloseHandle functions.
--
Kind regards,
Bruno.
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"