Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: substr and find of string Pin
George_George4-Sep-08 19:40
George_George4-Sep-08 19:40 
QuestionHow to know the availability of COM ports that are attached to our computer programmatically ? Pin
kapardhi3-Sep-08 23:55
kapardhi3-Sep-08 23:55 
AnswerRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
Rane4-Sep-08 0:41
Rane4-Sep-08 0:41 
GeneralRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
kapardhi4-Sep-08 2:10
kapardhi4-Sep-08 2:10 
QuestionRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
David Crow4-Sep-08 3:46
David Crow4-Sep-08 3:46 
AnswerRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
Roger Stoltz4-Sep-08 2:28
Roger Stoltz4-Sep-08 2:28 
GeneralRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
kapardhi4-Sep-08 2:58
kapardhi4-Sep-08 2:58 
AnswerRe: How to know the availability of COM ports that are attached to our computer programmatically ? Pin
Roger Stoltz4-Sep-08 3:09
Roger Stoltz4-Sep-08 3:09 
kapardhi wrote:
But my requirement is different, without testing in this format, i simply want to load only avilabe ports to my combobox rather than picking each port from combobox and testing it!!


As I said; you cannot do that since the system doesn't keep track of devices that are currently in use.

Compare it with opening a file, even the name of the function suggests that the comparison makes sense. You cannot determine whether the file is currently in use or not prior to trying to open it. If the file is in use and is opened with exclusive access, you'll get a sharing violation and the call to ::CreateFile() fails the same way it would fail when trying to open a COM port if the port is in use by another application.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


QuestionProblem in zooming the image. Pin
Bernaad3-Sep-08 23:24
Bernaad3-Sep-08 23:24 
AnswerRe: Problem in zooming the image. Pin
SandipG 3-Sep-08 23:31
SandipG 3-Sep-08 23:31 
GeneralRe: Problem in zooming the image. Pin
Bernaad3-Sep-08 23:51
Bernaad3-Sep-08 23:51 
GeneralRe: Problem in zooming the image. Pin
SandipG 3-Sep-08 23:55
SandipG 3-Sep-08 23:55 
GeneralRe: Problem in zooming the image. Pin
Bernaad4-Sep-08 0:12
Bernaad4-Sep-08 0:12 
GeneralRe: Problem in zooming the image. Pin
Mark Salsbery4-Sep-08 5:24
Mark Salsbery4-Sep-08 5:24 
Question怎么取得当前使用的计算机的用户名呢 Pin
alphaxz3-Sep-08 23:19
alphaxz3-Sep-08 23:19 
AnswerRe: The correct answer is Pin
Rajesh R Subramanian3-Sep-08 23:20
professionalRajesh R Subramanian3-Sep-08 23:20 
AnswerRe: YOU LOOSER Pin
toxcct3-Sep-08 23:26
toxcct3-Sep-08 23:26 
GeneralRe: YOU LOOSER Pin
alphaxz3-Sep-08 23:43
alphaxz3-Sep-08 23:43 
GeneralRe: YOU LOOSER Pin
SandipG 3-Sep-08 23:46
SandipG 3-Sep-08 23:46 
GeneralRe: YOU LOOSER Pin
ThatsAlok3-Sep-08 23:51
ThatsAlok3-Sep-08 23:51 
GeneralRe: YOU LOOSER Pin
David Crow4-Sep-08 3:49
David Crow4-Sep-08 3:49 
GeneralRe: YOU LOOSER Pin
toxcct4-Sep-08 0:43
toxcct4-Sep-08 0:43 
GeneralRe: YOU LOOSER Pin
Mark Salsbery4-Sep-08 5:25
Mark Salsbery4-Sep-08 5:25 
GeneralRe: YOU LOOSER Pin
toxcct4-Sep-08 5:29
toxcct4-Sep-08 5:29 
GeneralRe: YOU LOOSER Pin
Mark Salsbery4-Sep-08 5:51
Mark Salsbery4-Sep-08 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.