Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: which STL container can do this? Pin
valikac15-Oct-02 10:12
valikac15-Oct-02 10:12 
GeneralThank you all! Pin
ns15-Oct-02 10:20
ns15-Oct-02 10:20 
AnswerRe: which STL container can do this? Pin
Michael Dunn15-Oct-02 10:32
sitebuilderMichael Dunn15-Oct-02 10:32 
GeneralRe: which STL container can do this? Pin
ns15-Oct-02 10:37
ns15-Oct-02 10:37 
AnswerRe: which STL container can do this? Pin
Joaquín M López Muñoz15-Oct-02 11:00
Joaquín M López Muñoz15-Oct-02 11:00 
GeneralRe: which STL container can do this? Pin
Christian Graus15-Oct-02 11:34
protectorChristian Graus15-Oct-02 11:34 
GeneralRe: which STL container can do this? Pin
Joaquín M López Muñoz15-Oct-02 11:53
Joaquín M López Muñoz15-Oct-02 11:53 
GeneralUNICODE Problem! Pin
Daniel Strigl15-Oct-02 9:37
Daniel Strigl15-Oct-02 9:37 
Hi!

I want to change the caption of my property page (CPropertyPage) with setting the pszTitle member of the PROPSHEETPAGE struct.

It works fine when I am init the pszTitle member with something like _T("Hi!"), but when I am init the member with a CString object, in the tab control of my property sheet (CPropertySheet) some stupid characters are displayed.

This code works fine:
m_psp.dwFlags |= PSP_USETITLE;
m_psp.pszTitle = _T("Hi!");


But this code will display some stupid characters:
CString strTitle(_T("Hi!"));

m_psp.dwFlags |= PSP_USETITLE;
m_psp.pszTitle = strTitle;


I think the problem is that the system is working with UNICODE and this member (pszTitle) exspects a LPCSTR and no LPCTSTR.

But why does the first code sequenz woking and the second not?

And how can I fix that?

(Working with embedded Visual C++ 3.0 + MFC)

Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralRe: UNICODE Problem! Pin
Dave Bryant15-Oct-02 10:47
Dave Bryant15-Oct-02 10:47 
GeneralRe: UNICODE Problem! Pin
Abin15-Oct-02 11:13
Abin15-Oct-02 11:13 
GeneralRe: UNICODE Problem! Pin
Daniel Strigl15-Oct-02 20:15
Daniel Strigl15-Oct-02 20:15 
GeneralRe: UNICODE Problem! Pin
Abin16-Oct-02 5:50
Abin16-Oct-02 5:50 
GeneralQ: CreateDIBitmap + GetDeviceCaps Pin
Chris Losinger15-Oct-02 9:10
professionalChris Losinger15-Oct-02 9:10 
GeneralDDBToDIB() problem Pin
Mike Savoie15-Oct-02 9:01
Mike Savoie15-Oct-02 9:01 
GeneralRe: DDBToDIB() problem Pin
Chris Losinger15-Oct-02 9:13
professionalChris Losinger15-Oct-02 9:13 
GeneralRe: DDBToDIB() problem Pin
Mike Savoie15-Oct-02 9:22
Mike Savoie15-Oct-02 9:22 
GeneralRe: DDBToDIB() problem Pin
Chris Losinger15-Oct-02 9:26
professionalChris Losinger15-Oct-02 9:26 
GeneralRe: thank you Pin
Mike Savoie15-Oct-02 9:30
Mike Savoie15-Oct-02 9:30 
Generalhowto get fileinformation Pin
mkrelli15-Oct-02 7:22
mkrelli15-Oct-02 7:22 
GeneralRe: howto get fileinformation Pin
Tomasz Sowinski15-Oct-02 7:43
Tomasz Sowinski15-Oct-02 7:43 
GeneralCComboBox acts like CEdit Pin
john john mackey15-Oct-02 7:14
john john mackey15-Oct-02 7:14 
GeneralRe: CComboBox acts like CEdit Pin
Tomasz Sowinski15-Oct-02 7:23
Tomasz Sowinski15-Oct-02 7:23 
Generalhandlin WM_KILLFOCUS in CWnd-derived Pin
mishgun15-Oct-02 6:23
mishgun15-Oct-02 6:23 
GeneralRe: handlin WM_KILLFOCUS in CWnd-derived Pin
Roger Allen16-Oct-02 2:07
Roger Allen16-Oct-02 2:07 
GeneralLast Thread post for me... Pin
15-Oct-02 6:14
suss15-Oct-02 6:14 

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.