Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 8:06
RickGavin9-Sep-05 8:06 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
David Crow9-Sep-05 8:35
David Crow9-Sep-05 8:35 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
RickGavin9-Sep-05 9:00
RickGavin9-Sep-05 9:00 
AnswerRe: VC7 compiled projects still work on 98/ME? Pin
PJ Arends9-Sep-05 9:09
professionalPJ Arends9-Sep-05 9:09 
GeneralRe: VC7 compiled projects still work on 98/ME? Pin
Anonymous9-Sep-05 20:25
Anonymous9-Sep-05 20:25 
QuestionTurning win app into console still using cdocument Pin
Anna Anna9-Sep-05 5:40
Anna Anna9-Sep-05 5:40 
QuestionGDI, ScriptTextOut & printing (&preview) Pin
Super Lloyd9-Sep-05 3:53
Super Lloyd9-Sep-05 3:53 

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.