Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: creating help file Pin
David Crow19-Aug-04 2:54
David Crow19-Aug-04 2:54 
QuestionEfficient Thread Synchronization Object? Pin
aufeuer18-Aug-04 21:37
aufeuer18-Aug-04 21:37 
AnswerRe: Efficient Thread Synchronization Object? Pin
valikac19-Aug-04 5:56
valikac19-Aug-04 5:56 
AnswerRe: Efficient Thread Synchronization Object? Pin
gamitech19-Aug-04 11:41
gamitech19-Aug-04 11:41 
GeneralRe: Efficient Thread Synchronization Object? Pin
aufeuer19-Aug-04 14:32
aufeuer19-Aug-04 14:32 
GeneralRe: Efficient Thread Synchronization Object? Pin
Blake Miller30-Aug-04 6:21
Blake Miller30-Aug-04 6:21 
GeneralBluetooth related question ! Pin
Cedric Moonen18-Aug-04 21:15
Cedric Moonen18-Aug-04 21:15 
GeneralRe: Bluetooth related question ! Pin
Antti Keskinen18-Aug-04 23:40
Antti Keskinen18-Aug-04 23:40 
Hmm..

To simplify things: does the BT stack offer the COM4 port even if the device wasn't connected ? I mean, regardless of the availability of the device, the port can always be opened ?

But, when a device is not connected, the port does open but no timeouts occur ?

One solution would be to use a custom timer. On the first attempt to communicate with the device, open the port, create a custom timer, and send a predefined command to the device, to which you know a response. This could be something like querying the serial number or software version. If your custom timer expires before a response is received, it is safe to assume that there is no device connected, and handle this as "No device available" -situation in the application.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Bluetooth related question ! Pin
Cedric Moonen18-Aug-04 23:50
Cedric Moonen18-Aug-04 23:50 
GeneralRe: Bluetooth related question ! Pin
Antti Keskinen19-Aug-04 1:33
Antti Keskinen19-Aug-04 1:33 
GeneralRe: Bluetooth related question ! Pin
Cedric Moonen19-Aug-04 1:45
Cedric Moonen19-Aug-04 1:45 
Generalthread affinity Pin
User 58385218-Aug-04 20:27
User 58385218-Aug-04 20:27 
GeneralRe: thread affinity Pin
Neville Franks19-Aug-04 1:32
Neville Franks19-Aug-04 1:32 
GeneralRe: thread affinity Pin
User 58385219-Aug-04 15:51
User 58385219-Aug-04 15:51 
GeneralAbut dialogs skins Pin
zahid_ash18-Aug-04 20:05
zahid_ash18-Aug-04 20:05 
GeneralRe: Abut dialogs skins Pin
Antti Keskinen18-Aug-04 23:44
Antti Keskinen18-Aug-04 23:44 
GeneralRe: Abut dialogs skins Pin
zahid_ash19-Aug-04 0:27
zahid_ash19-Aug-04 0:27 
GeneralRe: Abut dialogs skins Pin
Antti Keskinen19-Aug-04 1:36
Antti Keskinen19-Aug-04 1:36 
GeneralStrange Error during execution Pin
Paolo Ponzano18-Aug-04 20:02
Paolo Ponzano18-Aug-04 20:02 
GeneralRe: Strange Error during execution Pin
Indrawati18-Aug-04 20:59
Indrawati18-Aug-04 20:59 
GeneralRe: Strange Error during execution Pin
mahade118-Aug-04 21:29
mahade118-Aug-04 21:29 
GeneralDesktop sharing application in vc++.net Pin
Member 69638018-Aug-04 19:04
Member 69638018-Aug-04 19:04 
Generalchange IP address Pin
Member 130718218-Aug-04 17:29
Member 130718218-Aug-04 17:29 
GeneralRe: change IP address Pin
Christian Graus18-Aug-04 17:50
protectorChristian Graus18-Aug-04 17:50 
GeneralRe: change IP address Pin
Member 130718218-Aug-04 18:21
Member 130718218-Aug-04 18:21 

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.