Click here to Skip to main content
15,890,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: difference between CreateThread & AfxBeginThread Pin
Defenestration8-Dec-08 22:51
Defenestration8-Dec-08 22:51 
QuestionHow to write string values in .csv file Pin
MsmVc8-Dec-08 20:40
MsmVc8-Dec-08 20:40 
AnswerRe: How to write string values in .csv file Pin
Cedric Moonen8-Dec-08 20:51
Cedric Moonen8-Dec-08 20:51 
AnswerRe: How to write string values in .csv file Pin
SandipG 8-Dec-08 20:52
SandipG 8-Dec-08 20:52 
GeneralRe: How to write string values in .csv file Pin
MsmVc8-Dec-08 21:10
MsmVc8-Dec-08 21:10 
QuestionRe: How to write string values in .csv file Pin
Rajesh R Subramanian8-Dec-08 21:01
professionalRajesh R Subramanian8-Dec-08 21:01 
QuestionWindows Installer for a C++/MFC application Pin
Puneet Kulkarni8-Dec-08 19:46
Puneet Kulkarni8-Dec-08 19:46 
QuestionWhy do some combinations of port settings fail ? Pin
kapardhi8-Dec-08 19:34
kapardhi8-Dec-08 19:34 
Hai !
We can change the Baud rate, Parity, DataBits, StopBits etc of a COM port using the Structure of DCB

DCB dcbObj;
dcbObj.BaudRate = 115200;
dcbObj.ByteSize = 8;
...

Now in order to set these changes to our port i use the Function
SetCommState (ComPortHandle, &dcbObj);

But some cobinations fail, the error message is "The parameter is incorrect", Why is it so? I get the error using GetLastError ()
Some of the Fail Combinations are :
read as
(BaudRate, Parity, ByteSize, StopBits)
(600, ODD, 7, 1.5)
(1200, NONE, 8, 1.5)
(1200, MARK, 5, 2)
etc.

Thanks !
AnswerRe: Why do some combinations of port settings fail ? Pin
Roger Stoltz8-Dec-08 21:43
Roger Stoltz8-Dec-08 21:43 
QuestionSafe way to initialize LARGE_INTEGER with int ? PinPopular
Defenestration8-Dec-08 18:42
Defenestration8-Dec-08 18:42 
Questionconnect to MS Excel database on windows XP from winCE device Pin
parthsarathy8-Dec-08 18:01
parthsarathy8-Dec-08 18:01 
QuestionDo you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 17:42
Defenestration8-Dec-08 17:42 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:15
_AnsHUMAN_ 8-Dec-08 18:15 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 18:31
Defenestration8-Dec-08 18:31 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:38
_AnsHUMAN_ 8-Dec-08 18:38 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 18:46
Defenestration8-Dec-08 18:46 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
_AnsHUMAN_ 8-Dec-08 18:53
_AnsHUMAN_ 8-Dec-08 18:53 
AnswerRe: Do you put :: in front of every Windows API call ? [modified] Pin
Defenestration8-Dec-08 19:06
Defenestration8-Dec-08 19:06 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Rajesh R Subramanian8-Dec-08 20:27
professionalRajesh R Subramanian8-Dec-08 20:27 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
Roger Stoltz8-Dec-08 21:29
Roger Stoltz8-Dec-08 21:29 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 22:22
Defenestration8-Dec-08 22:22 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
Roger Stoltz8-Dec-08 22:34
Roger Stoltz8-Dec-08 22:34 
GeneralRe: Do you put :: in front of every Windows API call ? Pin
Defenestration8-Dec-08 22:39
Defenestration8-Dec-08 22:39 
AnswerRe: Do you put :: in front of every Windows API call ? Pin
Roger Stoltz8-Dec-08 22:44
Roger Stoltz8-Dec-08 22:44 
AnswerRe: Do you put :: in front of every Windows API call ? [modified] Pin
Defenestration8-Dec-08 22:53
Defenestration8-Dec-08 22:53 

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.