Click here to Skip to main content
15,789,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Virtual Functions? Pin
CPallini17-Feb-12 3:15
mveCPallini17-Feb-12 3:15 
GeneralRe: Virtual Functions? Pin
msr_codeproject17-Feb-12 3:29
msr_codeproject17-Feb-12 3:29 
GeneralRe: Virtual Functions? Pin
CPallini17-Feb-12 3:42
mveCPallini17-Feb-12 3:42 
QuestionRe: Virtual Functions? Pin
David Crow17-Feb-12 3:40
David Crow17-Feb-12 3:40 
AnswerRe: Virtual Functions? Pin
Chuck O'Toole17-Feb-12 4:08
Chuck O'Toole17-Feb-12 4:08 
AnswerRe: Virtual Functions? Pin
jschell17-Feb-12 8:10
jschell17-Feb-12 8:10 
AnswerRe: Virtual Functions? Pin
JackDingler17-Feb-12 11:31
JackDingler17-Feb-12 11:31 
QuestionSetting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 15:43
Andrew Pearson16-Feb-12 15:43 
Quick Q. Trying to set mark parity, write some data, set space parity, write out some more data. Doing this to emulate a wakeup bit for an older serial protocol. Now I am not convinced that I can do it reliably.

Initially I tried using SetCommsMask followed by WriteFile. When this failed, I also tried DeviceIOControl using IOCTL_SERIAL_SET_LINE_CONTROL, but alas, same result (SetCommsMask uses this anyway). The parity bit is not always set. I am not using overlapped comms.

When I look at the standard serial port driver supplied with the WDK, I see that IOCTL_SERIAL_SET_LINE_CONTROL uses WdfInterruptSynchronize to set the Line Control Register, and from what I read this is not synchronous (ie waits for an interrupt), so possible means that the parity bit might not always be set in the UART before I write out the data. Is this correct, or am I barking up the wrong tree?
AnswerRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Peter_in_278016-Feb-12 15:52
professionalPeter_in_278016-Feb-12 15:52 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 16:25
Andrew Pearson16-Feb-12 16:25 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Peter_in_278016-Feb-12 16:42
professionalPeter_in_278016-Feb-12 16:42 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 18:57
Andrew Pearson16-Feb-12 18:57 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric16-Feb-12 21:28
Erudite_Eric16-Feb-12 21:28 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt17-Feb-12 0:20
professionalJochen Arndt17-Feb-12 0:20 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric17-Feb-12 7:10
Erudite_Eric17-Feb-12 7:10 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson17-Feb-12 22:13
Andrew Pearson17-Feb-12 22:13 
SuggestionRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt17-Feb-12 23:58
professionalJochen Arndt17-Feb-12 23:58 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson21-Feb-12 14:04
Andrew Pearson21-Feb-12 14:04 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt21-Feb-12 22:46
professionalJochen Arndt21-Feb-12 22:46 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson22-Feb-12 12:35
Andrew Pearson22-Feb-12 12:35 
AnswerRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric16-Feb-12 21:20
Erudite_Eric16-Feb-12 21:20 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson17-Feb-12 22:30
Andrew Pearson17-Feb-12 22:30 
QuestionProblem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 15:41
john john mackey16-Feb-12 15:41 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Richard Andrew x6416-Feb-12 17:09
professionalRichard Andrew x6416-Feb-12 17:09 
GeneralRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 20:38
john john mackey16-Feb-12 20:38 

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.