Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading Images & displaying on a CDC Pin
27-May-01 10:14
suss27-May-01 10:14 
GeneralRe: Loading Images & displaying on a CDC Pin
Michael Dunn27-May-01 11:31
sitebuilderMichael Dunn27-May-01 11:31 
GeneralThx! Still: Loading Images & displaying on a CDC? Pin
27-May-01 12:27
suss27-May-01 12:27 
GeneralRe: Thx! Still: Loading Images & displaying on a CDC? Pin
Christian Graus27-May-01 14:17
protectorChristian Graus27-May-01 14:17 
GeneralThank you both! Pin
27-May-01 22:07
suss27-May-01 22:07 
GeneralSerialazing in 'Dialog Based App' Pin
27-May-01 3:06
suss27-May-01 3:06 
GeneralSerialazing in 'Dialog Based App' Pin
27-May-01 3:06
suss27-May-01 3:06 
GeneralINI Files Pin
#realJSOP27-May-01 1:39
professional#realJSOP27-May-01 1:39 
I'm working on a project that has to extract data from an INI file using GetPrivateProfileString. Under Windows 2000, my code works fine, but under Win9x and WinME, it fails.

The INI file in question is formatted like so:

[ SectionName ]
KeyName = SomeValue\t\t; comment


Notice that there are spaces in the "[ SectionName ]", as well as before and after the "=" sign in the key value assigments.

I'm using this code to read the file:

GetPrivateProfileString(" Section Name ", "KeyName", "", 255, "C:\Path\MyFile.ini");


I've tried all combinations of leading and trailing spaces for the section and key names in the GetPrivateProfileString call, but it still refuses to work in Win9x. I can't change the file tro be "compatible" because I'm not the one that generated the file, and besides, it might screw up the original program if I did so.

Anybody got any hints or suggestions?
GeneralRe: INI Files Pin
Christian Graus27-May-01 2:41
protectorChristian Graus27-May-01 2:41 
GeneralRe: INI Files Pin
#realJSOP27-May-01 3:53
professional#realJSOP27-May-01 3:53 
GeneralRe: INI Files Pin
#realJSOP28-May-01 1:04
professional#realJSOP28-May-01 1:04 
QuestionHow can I get a controls HWND ? Pin
26-May-01 9:34
suss26-May-01 9:34 
AnswerRe: How can I get a controls HWND ? Pin
26-May-01 10:28
suss26-May-01 10:28 
GeneralRe: How can I get a controls HWND ? Pin
Vu Nguyen15-Nov-01 5:58
Vu Nguyen15-Nov-01 5:58 
AnswerRe: How can I get a controls HWND ? Pin
26-May-01 10:47
suss26-May-01 10:47 
AnswerRe: How can I get a controls HWND ? Pin
Waleed Eissa26-May-01 11:11
Waleed Eissa26-May-01 11:11 
AnswerThanks for all ! Pin
27-May-01 4:54
suss27-May-01 4:54 
GeneralPrepare image before Bitblt Pin
Starodubtsev Sergey26-May-01 7:00
Starodubtsev Sergey26-May-01 7:00 
GeneralRe: Prepare image before Bitblt Pin
Christian Graus26-May-01 22:13
protectorChristian Graus26-May-01 22:13 
GeneralCEditView Pin
Starodubtsev Sergey26-May-01 6:05
Starodubtsev Sergey26-May-01 6:05 
GeneralRe: CEditView Pin
27-May-01 7:40
suss27-May-01 7:40 
GeneralReading data from CFile Pin
26-May-01 2:52
suss26-May-01 2:52 
GeneralRe: Reading data from CFile Pin
26-May-01 3:46
suss26-May-01 3:46 
GeneralRe: Reading data from CFile Pin
26-May-01 5:15
suss26-May-01 5:15 
GeneralRe: Reading data from CFile Pin
27-May-01 1:02
suss27-May-01 1:02 

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.