Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: programming Pin
led mike12-Oct-06 8:12
led mike12-Oct-06 8:12 
GeneralRe: programming Pin
Hamid_RT12-Oct-06 19:48
Hamid_RT12-Oct-06 19:48 
AnswerRe: programming Pin
Mark Salsbery12-Oct-06 10:02
Mark Salsbery12-Oct-06 10:02 
GeneralRe: programming Pin
Christian Graus12-Oct-06 10:11
protectorChristian Graus12-Oct-06 10:11 
GeneralRe: programming Pin
Mark Salsbery12-Oct-06 10:26
Mark Salsbery12-Oct-06 10:26 
QuestionConstructing a tree Pin
llp00na12-Oct-06 4:25
llp00na12-Oct-06 4:25 
QuestionRe: Constructing a tree Pin
David Crow12-Oct-06 5:56
David Crow12-Oct-06 5:56 
Questionrepresent string as its DWORD value Pin
Makakuin12-Oct-06 3:37
Makakuin12-Oct-06 3:37 
My problem -
I wrote an application that reads com port in a loop and stores received data in log file.
Everything was O.K. , but then i needed to add *.ini file to my app. I`ve constructed a small inifile class to get port settings, etc. from *.ini. Everything works just fine, but, one thing. For example - to define BaudRate i used my inifile class to return int value fo parameter e.g 9600 not CBR_9600.
As i came to StopBits section I realized that ONESTOPBIT is defined as 0 which, which means - I have to store StopBits as its int value - 0. The thing that bothers me is that it`s hard for user to understand - why the hell section StopBits has to be 0, not ONESTOPBIT or 1. Is there any way I could store this value in my config file as string "ONESTOPBIT" and then pass it to DCB as its defined value, without using switch or any other unneeded stuf in my inifile class. Hope somebody will be able to understand what I wrote here..... Please help - I`m stuck on this for whole day already...



AnswerRe: represent string as its DWORD value Pin
Mark Salsbery12-Oct-06 4:48
Mark Salsbery12-Oct-06 4:48 
GeneralRe: represent string as its DWORD value Pin
Makakuin12-Oct-06 7:20
Makakuin12-Oct-06 7:20 
GeneralRe: represent string as its DWORD value Pin
Mark Salsbery12-Oct-06 7:43
Mark Salsbery12-Oct-06 7:43 
AnswerRe: represent string as its DWORD value Pin
Zac Howland12-Oct-06 7:24
Zac Howland12-Oct-06 7:24 
GeneralRe: represent string as its DWORD value Pin
Makakuin12-Oct-06 7:41
Makakuin12-Oct-06 7:41 
GeneralRe: represent string as its DWORD value Pin
Zac Howland12-Oct-06 7:56
Zac Howland12-Oct-06 7:56 
GeneralRe: represent string as its DWORD value [modified] Pin
Makakuin12-Oct-06 9:09
Makakuin12-Oct-06 9:09 
GeneralRe: represent string as its DWORD value Pin
Zac Howland12-Oct-06 9:16
Zac Howland12-Oct-06 9:16 
GeneralRe: represent string as its DWORD value Pin
Makakuin12-Oct-06 10:00
Makakuin12-Oct-06 10:00 
GeneralRe: represent string as its DWORD value Pin
Zac Howland12-Oct-06 10:03
Zac Howland12-Oct-06 10:03 
GeneralRe: represent string as its DWORD value Pin
Makakuin12-Oct-06 9:28
Makakuin12-Oct-06 9:28 
QuestionRe: represent string as its DWORD value Pin
David Crow12-Oct-06 9:34
David Crow12-Oct-06 9:34 
QuestionResource.h File Checking Pin
Andy20212-Oct-06 3:12
Andy20212-Oct-06 3:12 
AnswerRe: Resource.h File Checking Pin
Hamid_RT12-Oct-06 3:20
Hamid_RT12-Oct-06 3:20 
GeneralRe: Resource.h File Checking Pin
David Crow12-Oct-06 3:50
David Crow12-Oct-06 3:50 
GeneralRe: Resource.h File Checking Pin
Maximilien12-Oct-06 7:20
Maximilien12-Oct-06 7:20 
GeneralRe: Resource.h File Checking Pin
David Crow12-Oct-06 7:28
David Crow12-Oct-06 7:28 

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.