Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DrawThemeBackground Pin
PJ Arends16-Feb-07 8:06
professionalPJ Arends16-Feb-07 8:06 
Questionanother serial port question Pin
zqueezy15-Feb-07 10:07
zqueezy15-Feb-07 10:07 
AnswerRe: another serial port question Pin
jeron115-Feb-07 10:24
jeron115-Feb-07 10:24 
GeneralRe: another serial port question Pin
zqueezy15-Feb-07 10:26
zqueezy15-Feb-07 10:26 
GeneralRe: another serial port question Pin
jeron115-Feb-07 10:40
jeron115-Feb-07 10:40 
GeneralRe: another serial port question Pin
zqueezy15-Feb-07 11:07
zqueezy15-Feb-07 11:07 
GeneralRe: another serial port question Pin
jeron115-Feb-07 11:28
jeron115-Feb-07 11:28 
AnswerRe: another serial port question Pin
Roger Stoltz15-Feb-07 11:50
Roger Stoltz15-Feb-07 11:50 
zqueezy wrote:
how do I access a single Pin for my serial port?


Depends on what you want to do with it and what type of connector you have.


zqueezy wrote:
I established the connection via createfile and wanted to write to the 4th pin...


Well, if this is a DB25 connector then pin 4 is the RTS signal and if it's a DB9 connector it would be the DTR signal.
As jeron1 said you can use the ::EscapeCommFunction() to set or clear those signals.
You can also use ::SetCommState() to set up handshaking behaviour.

From user mode it's not possible to send data that is dependant on a specific baudrate on such pins since you cannot rely on the timing due to windows not being a real-time OS.
How are you planning to use the pin?


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

Questionconst double ERROR=-1e30 ?? Pin
jalsa G15-Feb-07 8:05
jalsa G15-Feb-07 8:05 
AnswerRe: const double ERROR=-1e30 ?? Pin
Newbie0015-Feb-07 8:17
Newbie0015-Feb-07 8:17 
AnswerRe: const double ERROR=-1e30 ?? Pin
toxcct15-Feb-07 8:19
toxcct15-Feb-07 8:19 
GeneralRe: const double ERROR=-1e30 ?? Pin
Newbie0015-Feb-07 8:23
Newbie0015-Feb-07 8:23 
GeneralRe: const double ERROR=-1e30 ?? Pin
toxcct15-Feb-07 8:26
toxcct15-Feb-07 8:26 
AnswerRe: const double ERROR=-1e30 ?? Pin
Maximilien15-Feb-07 8:23
Maximilien15-Feb-07 8:23 
AnswerRe: const double ERROR=-1e30 ?? Pin
Mark Salsbery15-Feb-07 10:15
Mark Salsbery15-Feb-07 10:15 
GeneralRe: const double ERROR=-1e30 ?? Pin
Hamid_RT16-Feb-07 0:58
Hamid_RT16-Feb-07 0:58 
GeneralRe: const double ERROR=-1e30 ?? Pin
Mark Salsbery16-Feb-07 6:44
Mark Salsbery16-Feb-07 6:44 
GeneralRe: const double ERROR=-1e30 ?? Pin
Newbie0016-Feb-07 7:11
Newbie0016-Feb-07 7:11 
Questionhow to embed my code in en image Pin
sepel15-Feb-07 7:14
sepel15-Feb-07 7:14 
AnswerRe: how to embed my code in en image Pin
toxcct15-Feb-07 7:16
toxcct15-Feb-07 7:16 
GeneralRe: how to embed my code in en image Pin
sepel16-Feb-07 0:37
sepel16-Feb-07 0:37 
GeneralRe: how to embed my code in en image Pin
toxcct16-Feb-07 0:39
toxcct16-Feb-07 0:39 
GeneralRe: how to embed my code in en image Pin
sepel16-Feb-07 1:08
sepel16-Feb-07 1:08 
QuestionVirtual Memory Pin
ScotDolan15-Feb-07 6:57
ScotDolan15-Feb-07 6:57 
AnswerRe: Virtual Memory Pin
toxcct15-Feb-07 6:59
toxcct15-Feb-07 6:59 

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.