Click here to Skip to main content
15,900,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: windows 2000 power management Pin
roboo19-Dec-02 18:14
roboo19-Dec-02 18:14 
QuestionDynamic Object Creation, ok. What about destruction? Pin
Mr.Freeze19-Dec-02 15:00
Mr.Freeze19-Dec-02 15:00 
AnswerRe: Dynamic Object Creation, ok. What about destruction? Pin
Nish Nishant19-Dec-02 15:32
sitebuilderNish Nishant19-Dec-02 15:32 
GeneralRe: Dynamic Object Creation, ok. What about destruction? Pin
Mr.Freeze19-Dec-02 15:46
Mr.Freeze19-Dec-02 15:46 
GeneralRe: Dynamic Object Creation, ok. What about destruction? Pin
Christian Graus19-Dec-02 17:02
protectorChristian Graus19-Dec-02 17:02 
GeneralRe: Dynamic Object Creation, ok. What about destruction? Pin
Mr.Freeze19-Dec-02 17:03
Mr.Freeze19-Dec-02 17:03 
Generalres: protocol and custom resources (PDF files) Pin
Harold Bamford19-Dec-02 14:20
Harold Bamford19-Dec-02 14:20 
QuestionDynamically generate app title? Pin
Ravi Bhavnani19-Dec-02 13:24
professionalRavi Bhavnani19-Dec-02 13:24 
I have an MDI app whose title is specified as the string resource AFX_IDS_APP_TITLE (eg: "MyApp"). I want to generate the app's title dynamically, based whether the app is running in "Lite" or "Professional" mode.

The following advice from MSDN appears to not work. The app still uses "MyApp" inspite of the following code in CMyApp's constructor.
// Set application caption - caption needs to be allocated from the
// heap (see MSDN CWinApp doc)
free ((void*) m_pszAppName);
if (isLiteEdition())
   m_pszAppName = _tcsdup (_T("MyApp - Lite"));
else
   m_pszAppName = _tcsdup (_T("MyApp - Pro"));
Any clues would be appreciated. Thanks,

/ravi

Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
AnswerRe: Dynamically generate app title? Pin
Chris Losinger19-Dec-02 13:41
professionalChris Losinger19-Dec-02 13:41 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani19-Dec-02 13:54
professionalRavi Bhavnani19-Dec-02 13:54 
AnswerRe: Dynamically generate app title? Pin
Christian Graus19-Dec-02 13:41
protectorChristian Graus19-Dec-02 13:41 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani19-Dec-02 13:57
professionalRavi Bhavnani19-Dec-02 13:57 
GeneralRe: Dynamically generate app title? Pin
Taka Muraoka19-Dec-02 15:45
Taka Muraoka19-Dec-02 15:45 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani20-Dec-02 2:34
professionalRavi Bhavnani20-Dec-02 2:34 
GeneralRe: Dynamically generate app title? Pin
Taka Muraoka20-Dec-02 2:41
Taka Muraoka20-Dec-02 2:41 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani20-Dec-02 2:45
professionalRavi Bhavnani20-Dec-02 2:45 
GeneralRe: Dynamically generate app title? Pin
Taka Muraoka20-Dec-02 2:50
Taka Muraoka20-Dec-02 2:50 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani20-Dec-02 2:56
professionalRavi Bhavnani20-Dec-02 2:56 
AnswerRe: Dynamically generate app title? Pin
Iain Clarke, Warrior Programmer19-Dec-02 13:56
Iain Clarke, Warrior Programmer19-Dec-02 13:56 
GeneralRe: Dynamically generate app title? Pin
Ravi Bhavnani19-Dec-02 13:58
professionalRavi Bhavnani19-Dec-02 13:58 
GeneralProgram Crashed, BUT, I have a DR.WATSON log Pin
Mike Doner19-Dec-02 12:32
Mike Doner19-Dec-02 12:32 
GeneralRe: Program Crashed, BUT, I have a DR.WATSON log Pin
Andreas Saurwein19-Dec-02 14:45
Andreas Saurwein19-Dec-02 14:45 
GeneralHelp: Vector class won't work (read this one) Pin
KBL19-Dec-02 10:44
KBL19-Dec-02 10:44 
GeneralRe: Help: Vector class won't work (read this one) Pin
Christian Graus19-Dec-02 10:53
protectorChristian Graus19-Dec-02 10:53 
GeneralRe: Help: Vector class won't work (read this one) Pin
KBL19-Dec-02 12:00
KBL19-Dec-02 12:00 

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.