Click here to Skip to main content
15,918,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding the Menu in a MFC Application Pin
Remus Lazar5-Sep-00 23:07
Remus Lazar5-Sep-00 23:07 
GeneralChanging default icon for saved documents in SDI Pin
Savage5-Sep-00 13:58
Savage5-Sep-00 13:58 
GeneralRe: Changing default icon for saved documents in SDI Pin
Michael Dunn5-Sep-00 18:19
sitebuilderMichael Dunn5-Sep-00 18:19 
GeneralUnicode vs. ANSI string Pin
Member 117662575-Sep-00 11:57
Member 117662575-Sep-00 11:57 
GeneralRe: Unicode vs. ANSI string Pin
Serge Velikevitch15-Sep-00 11:11
sussSerge Velikevitch15-Sep-00 11:11 
GeneralBeginner Q: Viewing the contents of an array in the watch window Pin
Matthias Steinbart5-Sep-00 5:17
sussMatthias Steinbart5-Sep-00 5:17 
GeneralRe: Beginner Q: Viewing the contents of an array in the watch window Pin
arf5-Sep-00 6:00
arf5-Sep-00 6:00 
GeneralCFileDialog problems on Win2000 with read only files Pin
Ronald L. Russell Jr. (Ron)5-Sep-00 3:42
sussRonald L. Russell Jr. (Ron)5-Sep-00 3:42 
GeneralRe: CFileDialog problems on Win2000 with read only files Pin
jschacker5-Sep-00 5:31
jschacker5-Sep-00 5:31 
GeneralWriting DevStudio Add-Ins Pin
#realJSOP5-Sep-00 3:29
professional#realJSOP5-Sep-00 3:29 
GeneralZip/Unzip class Pin
Franky Braem5-Sep-00 0:41
Franky Braem5-Sep-00 0:41 
GeneralRe: Zip/Unzip class Pin
Jeremy Davis5-Sep-00 22:17
Jeremy Davis5-Sep-00 22:17 
GeneralRe: Zip/Unzip class Pin
Franky Braem6-Sep-00 1:13
Franky Braem6-Sep-00 1:13 
GeneralRe: Zip/Unzip class Pin
Jeremy Davis6-Sep-00 1:36
Jeremy Davis6-Sep-00 1:36 
GeneralRe: Zip/Unzip class Pin
Jeremy Davis6-Sep-00 1:36
Jeremy Davis6-Sep-00 1:36 
GeneralLocalization of resources Pin
Chris Vischer5-Sep-00 0:09
Chris Vischer5-Sep-00 0:09 
GeneralRe: Localization of resources Pin
lauren5-Sep-00 4:29
lauren5-Sep-00 4:29 
GeneralCapture events of an ATL component Pin
Ivan Ng4-Sep-00 23:56
Ivan Ng4-Sep-00 23:56 
QuestionWM_SETFOCUS / WM_KILLFOCUS in dialog based apps... ????? Pin
Carlo Comino4-Sep-00 22:29
sussCarlo Comino4-Sep-00 22:29 
AnswerRe: WM_SETFOCUS / WM_KILLFOCUS in dialog based apps... ????? Pin
Ivan Ng4-Sep-00 23:54
Ivan Ng4-Sep-00 23:54 
GeneralInstallShield Pin
Eq4-Sep-00 21:25
Eq4-Sep-00 21:25 
GeneralInstallShield Pin
Eq4-Sep-00 21:25
Eq4-Sep-00 21:25 
GeneralInstallShield Pin
Eq4-Sep-00 21:25
Eq4-Sep-00 21:25 
GeneralReading INI files Pin
#realJSOP4-Sep-00 16:35
professional#realJSOP4-Sep-00 16:35 
I'm trying to read the clw file (programatically), and when I try the following lines of code, zero bytes are read from the file:

char sTemp[255];
int nBytes = GetPrivateProfileString("CLS:CMyClass", "HeaderFile", "", sTemp, sizeof(sTemp), "MyProject.clw");

The section name "CLS:CMyClass" exists, and the key "HeaderFile" exists within the section, but my program refuses to see it.

Could it be the colon character? (I've never seen a colon used in any other section names before this). If so, how do I get around it?

If the colon character isn't the problem, what could it possible be?



GeneralRe: Reading INI files Pin
Michael Dunn4-Sep-00 18:03
sitebuilderMichael Dunn4-Sep-00 18:03 

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.