Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC and MySql Pin
David Crow9-Sep-05 10:03
David Crow9-Sep-05 10:03 
GeneralRe: MFC and MySql Pin
Ming Luo9-Sep-05 10:52
Ming Luo9-Sep-05 10:52 
QuestionCListView SetInfoTip Pin
Stache9-Sep-05 9:08
Stache9-Sep-05 9:08 
AnswerRe: CListView SetInfoTip Pin
Anonymous9-Sep-05 23:38
Anonymous9-Sep-05 23:38 
GeneralRe: CListView SetInfoTip Pin
Stache10-Sep-05 5:40
Stache10-Sep-05 5:40 
Questionreading a .rc file Pin
yyatskar9-Sep-05 8:38
yyatskar9-Sep-05 8:38 
AnswerRe: reading a .rc file Pin
David Crow9-Sep-05 8:48
David Crow9-Sep-05 8:48 
QuestionMapViewOfFile with different protection attribute Pin
Chintoo7239-Sep-05 7:42
Chintoo7239-Sep-05 7:42 
AnswerRe: MapViewOfFile with different protection attribute Pin
Chintoo7239-Sep-05 8:29
Chintoo7239-Sep-05 8:29 
QuestionDetecting if an app is closed from with in the view Pin
tcss9-Sep-05 6:18
tcss9-Sep-05 6:18 
AnswerRe: Detecting if an app is closed from with in the view Pin
David Crow9-Sep-05 7:18
David Crow9-Sep-05 7:18 
AnswerRe: Detecting if an app is closed from with in the view Pin
tcss9-Sep-05 9:16
tcss9-Sep-05 9:16 
QuestionHelp need in programing Pin
thunderheart9-Sep-05 6:06
thunderheart9-Sep-05 6:06 
GeneralRe: Help need in programing Pin
Maximilien9-Sep-05 6:47
Maximilien9-Sep-05 6:47 
QuestionHelp!Replace mfc default icon Pin
Laffis9-Sep-05 6:04
Laffis9-Sep-05 6:04 
Hi, I am having problem replacing the default icon to my own in my SDI app.

I have tried some of the following:
1) edit the code: CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CReminderAlarmDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CReminderAlarmView));
AddDocTemplate(pDocTemplate);
replace 'IDR_MAINFRAME' to new icon id. Did not work. When running, I got message ' failed to create empty document'.
2) in devstudio resource editor, copy-paste the new icon into the IDR_MAINFRAME icon. Did not work. Still show the default icon.
3) open the .rc file in text mode, manually point the IDR_MAINFRAME to the new icon file, rather than the default. Still show the default icon.

Note that I always do clean/rebuild all in case the image is still left in the exe file but still no luck.

I think I also tried some other stuff but better not to go on.

Eventually, (I do not remember what I did) the app suddenly is showing the right icon although the resolution is poor. However I could not reproduce the result.

Can any big expert shed some light for me??? Very frustrated...
AnswerRe: Help!Replace mfc default icon Pin
krmed9-Sep-05 6:45
krmed9-Sep-05 6:45 
AnswerRe: Help!Replace mfc default icon Pin
David Crow9-Sep-05 7:13
David Crow9-Sep-05 7:13 
QuestionVC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 5:48
RickGavin9-Sep-05 5:48 
AnswerRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 6:00
David Crow9-Sep-05 6:00 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 6:20
RickGavin9-Sep-05 6:20 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 7:10
David Crow9-Sep-05 7:10 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 7:14
RickGavin9-Sep-05 7:14 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 7:21
David Crow9-Sep-05 7:21 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 7:36
RickGavin9-Sep-05 7:36 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 7:52
David Crow9-Sep-05 7:52 

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.