agnivesh wrote:[color=blue]
> Hi there,
>
> I'm a beginner in C programming and want to learn how to write C (pure
> C) code to access hardware ports (serial,parallel,usb etc.) under
> windows environment ?
>
> 1. Please, suggest any online tutorials or free ebooks etc. for that.
>
> 2. Is it possible to do above tasks using MingW Developer Studio, GTK+
> etc. ? I've just downloaded these tools and want to make sure before
> starting learning these tools, that we can use these tools to write
> small windows GUI applications (in C), which can interact with external
> embedded systems through PC's serial, parallel or usb port.
>
> thanks in advance,
> agnivesh.
>[/color]
Hardware ports are platform dependent. The bigger platforms
require that programs use operating system functions to access
the ports. In smaller platforms, programs generally access
some kind of hardware chip. In even smaller platforms, the
ports are accessed directly.
You will have to ask in a newsgroup about your platform or
operating system.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library