hai
i am doing a small project.
can write program that listen to usb port?
if suppose an device is connected to usb port a message should come describing the nature of the device connected?
is this possible in c? if not can you suggest me how to do this?
please.

>>if suppose an device
Its "a device" -- see these grammer rules

>>is this possible in c?
Yes. I think you will have to write a device driver. But you first have to decide what operating system you want to use. MS-Windows you get the Windows DDK (Device Driver Kit).

i want my program to be platform independent.
it should be working with windows server and linux.
more over i dont know anything about DDK can you help me?

sorry i have poor grammar forgive me.

http://www.lvr.com/usb.htm
As soon as you start messing with devices, your code becomes very unportable.

With good design, you can minimise the amount of code you need to port from one machine to another.

i want my program to be platform independent.
it should be working with windows server and linux.
more over i dont know anything about DDK can you help me?

sorry i have poor grammar forgive me.

I have not written one either, but you can get help from these google links.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.