By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

recognition of a serial device

P: 25
Hi friends,

I have written a VC++ application that connects with a serial device via a COM port and I specify the port number(thru which the system has to connect) in an INI file or in an edit box. Now I want my application to recognise itself (rather than me giving the number), as to which port my serial device is connected. Is it possible to do this?

thanks in advance
Jun 8 '07 #1
Share this Question
Share on Google+
2 Replies

P: 1,806
You can get a list of every connected device or iterate through the porst you know to be available (of course I can't find the link that kept coming up when I was looking for somwething else....I will post it if I come accross it again - suffice to say, I found it one day by googling {for USB-related material I think}).

Of course if you wanted it to be found as soon as it were plugged in, you may need to use threaded programming to continuously look for a device.

I'm also not sure whether the method I can't find will tell you if a device is present, or whether it has associated a driver to it.....
Jun 8 '07 #2

P: 25
hi Deman,

thanks for ur reply..will try ur suggestions and post if i succeed..

Jun 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.