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

C / C++ / MFC

 
GeneralRe: LOGFONT structure.. Pin
kumar sanghvi29-Jun-09 7:49
kumar sanghvi29-Jun-09 7:49 
GeneralRe: LOGFONT structure.. Pin
Chris Losinger29-Jun-09 7:54
professionalChris Losinger29-Jun-09 7:54 
GeneralRe: LOGFONT structure.. Pin
Sarath C29-Jun-09 7:59
Sarath C29-Jun-09 7:59 
GeneralRe: LOGFONT structure.. Pin
Randor 29-Jun-09 8:03
professional Randor 29-Jun-09 8:03 
QuestionDeployment Problem - Nothing Happens when run! Pin
Grahamfff29-Jun-09 4:07
Grahamfff29-Jun-09 4:07 
AnswerRe: Deployment Problem - Nothing Happens when run! Pin
Cedric Moonen29-Jun-09 4:27
Cedric Moonen29-Jun-09 4:27 
QuestionMDI OnDraw never being called Pin
transoft29-Jun-09 3:13
transoft29-Jun-09 3:13 
AnswerRe: MDI OnDraw never being called Pin
Alan Balkany29-Jun-09 5:23
Alan Balkany29-Jun-09 5:23 
AnswerRe: MDI OnDraw never being called Pin
Ozer Karaagac29-Jun-09 11:45
professionalOzer Karaagac29-Jun-09 11:45 
GeneralRe: MDI OnDraw never being called Pin
transoft30-Jun-09 2:02
transoft30-Jun-09 2:02 
GeneralRe: MDI OnDraw never being called Pin
Ozer Karaagac30-Jun-09 2:39
professionalOzer Karaagac30-Jun-09 2:39 
QuestionGetting #include {iostream} to work Pin
JaeBeam29-Jun-09 3:09
JaeBeam29-Jun-09 3:09 
QuestionRe: Getting #include {iostream} to work Pin
David Crow29-Jun-09 3:16
David Crow29-Jun-09 3:16 
JokeRe: Getting #include {iostream} to work Pin
Rajesh R Subramanian29-Jun-09 3:18
professionalRajesh R Subramanian29-Jun-09 3:18 
JokeRe: Getting #include {iostream} to work Pin
CPallini2-Jul-09 9:57
mveCPallini2-Jul-09 9:57 
GeneralRe: Getting #include {iostream} to work Pin
Rajesh R Subramanian2-Jul-09 17:52
professionalRajesh R Subramanian2-Jul-09 17:52 
AnswerRe: Getting #include {iostream} to work Pin
josda100029-Jun-09 4:56
josda100029-Jun-09 4:56 
AnswerRe: Getting #include {iostream} to work Pin
Randor 29-Jun-09 4:57
professional Randor 29-Jun-09 4:57 
GeneralRe: Getting #include {iostream} to work Pin
JaeBeam29-Jun-09 5:02
JaeBeam29-Jun-09 5:02 
GeneralRe: Getting #include {iostream} to work Pin
Randor 29-Jun-09 5:10
professional Randor 29-Jun-09 5:10 
AnswerRe: Getting #include {iostream} to work Pin
PJ Arends29-Jun-09 6:13
professionalPJ Arends29-Jun-09 6:13 
QuestionUsing the CRegistry class Pin
Larry Mills Sr29-Jun-09 2:48
Larry Mills Sr29-Jun-09 2:48 
I used the class to obtain values that an installer package saved to the registry. I can see the values in Regedit. but when the CRegistry class (readline()) never reads them!
I really need a solution to this: here's my code:
// App command to run the dialog
void CShopApp::FindRegData()
{
CRegistry Reg();
CRegData m_cRegData;// class of 5 CStrings
m_cRegData.CleanUp();
//CRegistry Reg;
CString csSubRoot = "SOFTWARE\\Mills Software Solutions Inc\\Shop";
m_cRegData.m_csRootMainKey = "HKEY_LOCAL_MACHINE";
m_cRegData.m_csSubKey = csSubRoot;
Reg.SetRootKey(HKEY_LOCAL_MACHINE);
if (Reg.SetKey(csSubRoot, FALSE))// jumps out here
{
m_cRegData.m_csCompany = Reg.ReadString("Company", "");// all CStrings in class m_cRegData are
"bad pointer" errors
m_cRegData.m_csUser = Reg.ReadString("Name", "");
m_cRegData.m_csSerialCode = Reg.ReadString("Serial", "");
m_cRegData.m_csRegCode = Reg.ReadString("RegCode", "");
//Reg
}
else
{
TRACE("Failed to open key\n");
}

m_csSaveData = InsertDelimiterReg(m_cRegData);// all CStrings Bad pointer
FileSaveRegData();
}
Can someone please explain why this is happening? I used REGEDIT and found that the key and values are there! I just can't get CRegistry to retrieve them.
Help!

A C++ programming language novice, but striving to learn

QuestionRe: Using the CRegistry class Pin
David Crow29-Jun-09 3:19
David Crow29-Jun-09 3:19 
AnswerRe: Using the CRegistry class Pin
Larry Mills Sr29-Jun-09 7:42
Larry Mills Sr29-Jun-09 7:42 
QuestionRe: Using the CRegistry class Pin
David Crow29-Jun-09 7:45
David Crow29-Jun-09 7:45 

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.