Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Using the CRegistry class Pin
Joschwenk6668-Mar-10 1:14
Joschwenk6668-Mar-10 1:14 
QuestionIs it right? Pin
Razanust29-Jun-09 2:35
Razanust29-Jun-09 2:35 
AnswerRe: Is it right? Pin
chandu00429-Jun-09 2:41
chandu00429-Jun-09 2:41 
AnswerRe: Is it right? Pin
«_Superman_»29-Jun-09 2:55
professional«_Superman_»29-Jun-09 2:55 
Questionhide the console window while using system(...) Pin
chandu00429-Jun-09 1:37
chandu00429-Jun-09 1:37 
QuestionRe: hide the console window while using system(...) Pin
Rajesh R Subramanian29-Jun-09 1:43
professionalRajesh R Subramanian29-Jun-09 1:43 
AnswerRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 1:48
chandu00429-Jun-09 1:48 
GeneralRe: hide the console window while using system(...) Pin
Rajesh R Subramanian29-Jun-09 1:59
professionalRajesh R Subramanian29-Jun-09 1:59 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 2:09
chandu00429-Jun-09 2:09 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 2:31
professional«_Superman_»29-Jun-09 2:31 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 2:36
chandu00429-Jun-09 2:36 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 2:50
professional«_Superman_»29-Jun-09 2:50 
GeneralRe: hide the console window while using system(...) Pin
chandu00429-Jun-09 3:08
chandu00429-Jun-09 3:08 
GeneralRe: hide the console window while using system(...) Pin
«_Superman_»29-Jun-09 3:09
professional«_Superman_»29-Jun-09 3:09 

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.