Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing menu background color (Win32) Pin
Michael Dunn19-Mar-03 9:05
sitebuilderMichael Dunn19-Mar-03 9:05 
GeneralRe: Changing menu background color (Win32) Pin
georgiek5019-Mar-03 12:25
georgiek5019-Mar-03 12:25 
GeneralRe: Changing menu background color (Win32) Pin
Big Art21-Mar-03 6:31
Big Art21-Mar-03 6:31 
GeneralRe: Changing menu background color (Win32) Pin
Anonymous21-Mar-03 6:59
Anonymous21-Mar-03 6:59 
GeneralRe: Changing menu background color (Win32) Pin
Big Art21-Mar-03 10:46
Big Art21-Mar-03 10:46 
GeneralSSL Client for desktop Windows Pin
Matthew Fleming19-Mar-03 8:11
Matthew Fleming19-Mar-03 8:11 
GeneralRe: SSL Client for desktop Windows Pin
geo_m19-Mar-03 10:29
geo_m19-Mar-03 10:29 
GeneralWhy this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 7:47
professionalJoan M19-Mar-03 7:47 
I have an array of property pages and I change their caption/title dynamically...

This works in the commented way, but when I try to do it using the non commented way, it crashes... (I'd like to know why)...

PREMISSES:

THE CASE THAT WORKS:
I have an array of property pages.
I have an array of titles.
Those two are members of the property sheet class.
THE CASE THAT DON'T WORKS:
I have an array of property pages.
I have one CString var declared inside the cosntructor of the property sheet class that will be used to store all the titles in the property pages...

THE CODE
{
...

this->m_ArrPPDlgParametritzacions[iNumPPags].m_psp.dwFlags |= PSP_USETITLE;  <code>// NOTHING TO DO...</code>
this->m_ArrPPDlgParametritzacions[iNumPPags].m_psp.dwFlags &= ~PSP_HASHELP; <code>// NOTHING TO DO...</code>
					
//m_ArrTitolsPropertyPages[iNumPPags].Format("%s",((char *)pxmlNode->attributes->getNamedItem("EtiquetaDescriptiva")->Gettext()));  <code>// THIS ONE WORKS OK...</code>

csTitolPPag = ((char *)pxmlNode->attributes->getNamedItem("EtiquetaDescriptiva")->Gettext()); <code>// THIS ONE WILL FAIL...</code>

this->m_ArrPPDlgParametritzacions[iNumPPags].m_psp.pszTitle = csTitolPPag;//m_ArrTitolsPropertyPages[iNumPPags];  <code>// IF I USE THE COMMENTED CODE EVERYTHING IS ALLRIGHT, BUT IF I USE THE ONE THAT's NOT COMMENTED, THEN THE TITLES ARE STRANGE (SOMETHING LIKE THIS:"@#~|@#€|~€|~|"...)</code>
					
this->AddPage(&m_ArrPPDlgParametritzacions[iNumPPags]); <code>// NOTHING TO DO...</code>

iNumPPags++; <code>// NOTHING TO DO...</code>
}
Any idea?

It's not a vital thing, I can live having an array of CStrings using memory, but it would be better to be able to do it without the array...

thank you in advance...
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Tim Smith19-Mar-03 8:02
Tim Smith19-Mar-03 8:02 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 8:07
professionalJoan M19-Mar-03 8:07 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
David Spain24-Mar-03 12:36
David Spain24-Mar-03 12:36 
GeneralLoad the resource by his name Pin
Eugene Pustovoyt19-Mar-03 7:34
Eugene Pustovoyt19-Mar-03 7:34 
GeneralRe: Load the resource by his name Pin
berndg19-Mar-03 7:45
berndg19-Mar-03 7:45 
GeneralRe: Load the resource by his name Pin
georgiek5019-Mar-03 8:14
georgiek5019-Mar-03 8:14 
QuestionWhere do I find....? Pin
JohnnyG19-Mar-03 7:25
JohnnyG19-Mar-03 7:25 
AnswerRe: Where do I find....? Pin
Eugene Pustovoyt19-Mar-03 7:41
Eugene Pustovoyt19-Mar-03 7:41 
GeneralRe: Where do I find....? Pin
JohnnyG19-Mar-03 8:11
JohnnyG19-Mar-03 8:11 
QuestionSyncronizing thread destruction? Pin
clintsinger19-Mar-03 7:10
clintsinger19-Mar-03 7:10 
AnswerRe: Syncronizing thread destruction? Pin
Neville Franks19-Mar-03 8:51
Neville Franks19-Mar-03 8:51 
AnswerRe: Syncronizing thread destruction? Pin
valikac19-Mar-03 12:10
valikac19-Mar-03 12:10 
GeneralRe: Syncronizing thread destruction? Pin
clintsinger21-Mar-03 4:28
clintsinger21-Mar-03 4:28 
GeneralCompareItem Pin
Anthony988719-Mar-03 5:33
Anthony988719-Mar-03 5:33 
GeneralRe: CompareItem Pin
Chris Losinger19-Mar-03 5:46
professionalChris Losinger19-Mar-03 5:46 
Questionmfc installation dependencies??? Pin
work_to_live19-Mar-03 5:02
work_to_live19-Mar-03 5:02 
AnswerRe: mfc installation dependencies??? Pin
Nish Nishant19-Mar-03 5:37
sitebuilderNish Nishant19-Mar-03 5:37 

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.