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

C / C++ / MFC

 
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 
Makakuin wrote:
where CBR_9600 and ONESTOPBIT are defined by c++ like 9600 and 0.
What I want to do is store those settings in config file (doesn`t matter ini or xml) as strings CBR_9600 and ONESTOPBIT and then read them.


So why can't you? Use sprintf(), or equivalent, to format the string and then write that string to the .ini file. Are you looking for atoi(), perhaps?

Otherwise, I'm just not following what you are after. Perhaps you could show what you want the .ini file to look like.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


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 
GeneralRe: Resource.h File Checking Pin
Grahamfff12-Oct-06 9:41
Grahamfff12-Oct-06 9:41 
GeneralRe: Resource.h File Checking Pin
David Crow12-Oct-06 10:11
David Crow12-Oct-06 10:11 
AnswerRe: Resource.h File Checking Pin
toxcct12-Oct-06 3:26
toxcct12-Oct-06 3:26 
GeneralRe: Resource.h File Checking Pin
Galatei12-Oct-06 7:41
Galatei12-Oct-06 7:41 
GeneralRe: Resource.h File Checking Pin
Blake Miller13-Oct-06 4:32
Blake Miller13-Oct-06 4:32 
QuestionC on UNIX Question Pin
Yadrif12-Oct-06 2:34
Yadrif12-Oct-06 2:34 
AnswerRe: C on UNIX Question Pin
tom144312-Oct-06 2:50
tom144312-Oct-06 2:50 
GeneralRe: C on UNIX Question Pin
Yadrif12-Oct-06 3:12
Yadrif12-Oct-06 3:12 
GeneralRe: C on UNIX Question Pin
Zac Howland12-Oct-06 3:17
Zac Howland12-Oct-06 3:17 
GeneralRe: C on UNIX Question Pin
tom144312-Oct-06 4:23
tom144312-Oct-06 4:23 
AnswerRe: C on UNIX Question Pin
Link200612-Oct-06 2:53
Link200612-Oct-06 2:53 
QuestionHow to set the Default Main WW Page Pin
gomez_a12-Oct-06 2:25
gomez_a12-Oct-06 2:25 

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.