Click here to Skip to main content
15,905,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Reading INI files Pin
John Simmons/lazy outlaw programmer5-Sep-00 0:32
sussJohn Simmons/lazy outlaw programmer5-Sep-00 0:32 
GeneralRe: Reading INI files Pin
John Simmons/stupid outlaw programmer5-Sep-00 1:22
sussJohn Simmons/stupid outlaw programmer5-Sep-00 1:22 
GeneralAbout subclassing Pin
Eq4-Sep-00 7:05
Eq4-Sep-00 7:05 
GeneralCaption bar - how to add new button Pin
Stanik4-Sep-00 4:57
Stanik4-Sep-00 4:57 
GeneralRe: Caption bar - how to add new button Pin
zmike8-Sep-00 0:42
zmike8-Sep-00 0:42 
GeneralWorking directory of a process Pin
Eq3-Sep-00 18:43
Eq3-Sep-00 18:43 
GeneralRe: Working directory of a process Pin
Michael Dunn3-Sep-00 19:47
sitebuilderMichael Dunn3-Sep-00 19:47 
GeneralRe: Working directory of a process Pin
Tim Deveaux4-Sep-00 4:02
Tim Deveaux4-Sep-00 4:02 
GeneralC++ Console Application Pin
Graeme3-Sep-00 12:51
Graeme3-Sep-00 12:51 
GeneralRe: C++ Console Application Pin
Tim Deveaux3-Sep-00 14:52
Tim Deveaux3-Sep-00 14:52 
General** Passing Variable Values to other Dialog Boxes ** Pin
Steve Lai3-Sep-00 12:22
Steve Lai3-Sep-00 12:22 
GeneralRe: ** Passing Variable Values to other Dialog Boxes ** Pin
Tim Deveaux3-Sep-00 15:08
Tim Deveaux3-Sep-00 15:08 
GeneralRe: ** Passing Variable Values to other Dialog Boxes ** Pin
#realJSOP3-Sep-00 17:06
professional#realJSOP3-Sep-00 17:06 
GeneralPrint CRichEditCtrl from CView Pin
David Pokluda3-Sep-00 8:10
David Pokluda3-Sep-00 8:10 
GeneralRe: Print CRichEditCtrl from CView Pin
jschacker5-Sep-00 3:42
jschacker5-Sep-00 3:42 
GeneralRe: Print CRichEditCtrl from CView Pin
jschacker6-Sep-00 13:00
jschacker6-Sep-00 13:00 

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.