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

C / C++ / MFC

 
AnswerRe: Virtual Functions? PinPopular
Chuck O'Toole17-Feb-12 3:08
Chuck O'Toole17-Feb-12 3:08 
AnswerRe: Virtual Functions? Pin
jschell17-Feb-12 7:10
jschell17-Feb-12 7:10 
AnswerRe: Virtual Functions? Pin
JackDingler17-Feb-12 10:31
JackDingler17-Feb-12 10:31 
QuestionSetting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 14:43
Andrew Pearson16-Feb-12 14:43 
AnswerRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Peter_in_278016-Feb-12 14:52
professionalPeter_in_278016-Feb-12 14:52 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 15:25
Andrew Pearson16-Feb-12 15:25 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Peter_in_278016-Feb-12 15:42
professionalPeter_in_278016-Feb-12 15:42 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson16-Feb-12 17:57
Andrew Pearson16-Feb-12 17:57 
Its very annoying actually, as I can step over WriteFile() and it all works perfectly. Run it and it fails. I have checked registers to make sure there is nothing in transmit holding register, i have turned off the FIFO's. Now I just set the Parity Bit, then Send out a byte using IOCTL_SERIAL_IMMEDIATE_CHAR and it still fails. Not sure there is much left that I can do.

I notice that WDK makes mention of an internal call, IOCTL_SERIAL_INTERNAL_BASIC_SETTINGS. I am not right up there with drivers, but I need to port one to 64bit soon so might be good practice!

Edit.

Put a Sleep(10) after writing out first byte, but before setting parity back to space and guess what, it works. So Problem is not the fact the parity is not getting set fast enough, its because I am changing back parity bit BEFORE the first byte is being transmitted.

Tried a few more IOCTL's to try and read Line Status Register but they all show it as clear. Will keep trawling through driver code and see if I can turn something up.

modified 17-Feb-12 0:06am.

GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric16-Feb-12 20:28
Erudite_Eric16-Feb-12 20:28 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt16-Feb-12 23:20
professionalJochen Arndt16-Feb-12 23:20 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric17-Feb-12 6:10
Erudite_Eric17-Feb-12 6:10 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson17-Feb-12 21:13
Andrew Pearson17-Feb-12 21:13 
SuggestionRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt17-Feb-12 22:58
professionalJochen Arndt17-Feb-12 22:58 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson21-Feb-12 13:04
Andrew Pearson21-Feb-12 13:04 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt21-Feb-12 21:46
professionalJochen Arndt21-Feb-12 21:46 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson22-Feb-12 11:35
Andrew Pearson22-Feb-12 11:35 
AnswerRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric16-Feb-12 20:20
Erudite_Eric16-Feb-12 20:20 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson17-Feb-12 21:30
Andrew Pearson17-Feb-12 21:30 
QuestionProblem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 14:41
john john mackey16-Feb-12 14:41 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Richard Andrew x6416-Feb-12 16:09
professionalRichard Andrew x6416-Feb-12 16:09 
GeneralRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 19:38
john john mackey16-Feb-12 19:38 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Chuck O'Toole16-Feb-12 17:29
Chuck O'Toole16-Feb-12 17:29 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Chuck O'Toole16-Feb-12 17:32
Chuck O'Toole16-Feb-12 17:32 
GeneralRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 19:44
john john mackey16-Feb-12 19:44 
QuestionWebSockets in native C++ (not managed) Pin
Fred Ackers16-Feb-12 10:30
Fred Ackers16-Feb-12 10:30 

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.