Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: UINT ThreadProc ( LPVOID param ) Pin
susanne13-Aug-09 5:23
susanne13-Aug-09 5:23 
QuestionRe: UINT ThreadProc ( LPVOID param ) Pin
David Crow3-Aug-09 5:26
David Crow3-Aug-09 5:26 
AnswerRe: UINT ThreadProc ( LPVOID param ) Pin
Michael Dunn3-Aug-09 9:48
sitebuilderMichael Dunn3-Aug-09 9:48 
QuestionNon Ovelapped Serial I/O Pin
sunny_vc2-Aug-09 23:37
sunny_vc2-Aug-09 23:37 
AnswerRe: Non Ovelapped Serial I/O Pin
«_Superman_»2-Aug-09 23:54
professional«_Superman_»2-Aug-09 23:54 
GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 0:16
sunny_vc3-Aug-09 0:16 
GeneralRe: Non Ovelapped Serial I/O Pin
«_Superman_»3-Aug-09 0:21
professional«_Superman_»3-Aug-09 0:21 
GeneralRe: Non Ovelapped Serial I/O Pin
CPallini3-Aug-09 0:46
mveCPallini3-Aug-09 0:46 
«_Superman_» wrote:
You should be able to open more than once if you specify the FILE_SHARE_READ and FILE_SHARE_WRITE flags.


You cannot do that with a communication resource (MSDN [^])

The CreateFile function can create a handle to a communications resource, such as the serial port COM1. For communications resources, the dwCreationDisposition parameter must be OPEN_EXISTING, the dwShareMode parameter must be zero (exclusive access), and the hTemplateFile parameter must be NULL. Read, write, or read/write access can be specified, and the handle can be opened for overlapped I/O.


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 0:59
sunny_vc3-Aug-09 0:59 
GeneralRe: Non Ovelapped Serial I/O Pin
CPallini3-Aug-09 1:17
mveCPallini3-Aug-09 1:17 
GeneralRe: Non Ovelapped Serial I/O Pin
sunny_vc3-Aug-09 2:05
sunny_vc3-Aug-09 2:05 
QuestionRe: Non Ovelapped Serial I/O Pin
«_Superman_»3-Aug-09 2:35
professional«_Superman_»3-Aug-09 2:35 
GeneralRe: Non Ovelapped Serial I/O Pin
korvix3-Aug-09 15:42
korvix3-Aug-09 15:42 
QuestionRe: Non Ovelapped Serial I/O Pin
David Crow3-Aug-09 3:56
David Crow3-Aug-09 3:56 
AnswerRe: Non Overlapped Serial I/O Pin
sunny_vc3-Aug-09 4:53
sunny_vc3-Aug-09 4:53 
QuestionSobel - edge detection Pin
adichavan2-Aug-09 22:22
adichavan2-Aug-09 22:22 
AnswerRe: Sobel - edge detection Pin
HimanshuJoshi2-Aug-09 22:47
HimanshuJoshi2-Aug-09 22:47 
GeneralRe: Sobel - edge detection Pin
adichavan2-Aug-09 23:16
adichavan2-Aug-09 23:16 
GeneralRe: Sobel - edge detection PinPopular
Michael Schubert2-Aug-09 23:57
Michael Schubert2-Aug-09 23:57 
GeneralRe: Sobel - edge detection Pin
Chandrasekharan P3-Aug-09 0:05
Chandrasekharan P3-Aug-09 0:05 
GeneralRe: Sobel - edge detection Pin
adichavan3-Aug-09 1:39
adichavan3-Aug-09 1:39 
GeneralRe: Sobel - edge detection Pin
adichavan3-Aug-09 1:42
adichavan3-Aug-09 1:42 
GeneralRe: Sobel - edge detection Pin
Chandrasekharan P3-Aug-09 2:02
Chandrasekharan P3-Aug-09 2:02 
GeneralRe: Sobel - edge detection Pin
CPallini3-Aug-09 0:37
mveCPallini3-Aug-09 0:37 
QuestionWhich way should I select when save image from browser Pin
shi baoshi2-Aug-09 22:02
shi baoshi2-Aug-09 22:02 

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.