Advertisement

04.03.2008 at 01:10PM PDT, ID: 23294060
[x]
Attachment Details

GetPrivateProfileString - extremely basic question - extremely weird is it gflags causing this?

Asked by thready in C++ Programming Language, Windows MFC Programming

Tags: GetPrivateProfileString

Hi Experts,

I have now run into a weird problem - GetPrivateProfileString returns the default value.  I don't think I've changed anything that should affect this..  The section, key, and filename are all correctly passed as CStrings to GetPrivateProfileString - the file exists, the section exists, the key exists....  everything exists except my understanding of how this is not working.

I am very much grasping at straws here, but I've started to use gflags before I noticed this problem - and maybe it's a coincidence but I think I am seeing this problem with GetPrivateProfileString since I ran the following line program in the debug directory of my program:

gflags -p /enable MyProgram.exe /full
and then
ntsd  -g -x MyProgram.exe /lines /CorruptAfterEnd
Start Free Trial
[+][-]04.03.2008 at 01:45PM PDT, ID: 21276795

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 01:51PM PDT, ID: 21276847

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 01:53PM PDT, ID: 21276863

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Programming Language, Windows MFC Programming
Tags: GetPrivateProfileString
Sign Up Now!
Solution Provided By: Anthony2000
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.03.2008 at 02:34PM PDT, ID: 21277180

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 02:39PM PDT, ID: 21277213

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 06:16PM PDT, ID: 21278388

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.03.2008 at 10:20PM PDT, ID: 21279213

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906