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

C / C++ / MFC

 
GeneralRe: could anyone tell me what's the error with this code? Pin
ashwiny29-Jan-08 5:04
ashwiny29-Jan-08 5:04 
GeneralRe: could anyone tell me what's the error with this code? Pin
David Crow29-Jan-08 5:11
David Crow29-Jan-08 5:11 
AnswerRe: could anyone tell me what's the error with this code? Pin
Mr. Surprise29-Jan-08 8:14
Mr. Surprise29-Jan-08 8:14 
GeneralRe: could anyone tell me what's the error with this code? Pin
ashwiny29-Jan-08 15:40
ashwiny29-Jan-08 15:40 
GeneralCtreeView with Gradient BackGround Pin
sarat28-Jan-08 19:25
sarat28-Jan-08 19:25 
GeneralRe: CtreeView with Gradient BackGround Pin
sarat28-Jan-08 19:37
sarat28-Jan-08 19:37 
GeneralQuestion again about changing Icon for the EXE file icon Pin
Stan the man28-Jan-08 17:37
Stan the man28-Jan-08 17:37 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Steve Echols28-Jan-08 18:25
Steve Echols28-Jan-08 18:25 
I believe you can use #defines, etc, in your resource files. Just edit your .rc file (might have to do it in an external editor) and do something like:

#ifdef MY_CONDITION
IDR_MAINFRAME ICON "res\\my_icon_1.ico"
#else
IDR_MAINFRAME ICON "res\\my_icon_2.ico"
#endif

That's for an MFC app, but it should be similiar for other types too.

Where you define MY_CONDITION is up to you. Could do it in resource.h or in the .rc file itself or include another file.


- S
50 cups of coffee and you know it's on!

GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas28-Jan-08 19:15
Nibu babu thomas28-Jan-08 19:15 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT1-Feb-08 20:20
Hamid_RT1-Feb-08 20:20 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas1-Feb-08 22:24
Nibu babu thomas1-Feb-08 22:24 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT2-Feb-08 2:10
Hamid_RT2-Feb-08 2:10 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas2-Feb-08 2:15
Nibu babu thomas2-Feb-08 2:15 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT2-Feb-08 2:44
Hamid_RT2-Feb-08 2:44 
GeneralRe: Question again about changing Icon for the EXE file icon Pin
Nibu babu thomas4-Feb-08 16:19
Nibu babu thomas4-Feb-08 16:19 
QuestionRe: Question again about changing Icon for the EXE file icon Pin
Hamid_RT28-Jan-08 19:20
Hamid_RT28-Jan-08 19:20 
GeneralCStatusBar problem Pin
hanlei000000000928-Jan-08 17:30
hanlei000000000928-Jan-08 17:30 
GeneralRe: CStatusBar problem Pin
Hamid_RT28-Jan-08 19:24
Hamid_RT28-Jan-08 19:24 
GeneralChoose between cURL and WinInet Pin
Sudhir Mangla28-Jan-08 17:27
professionalSudhir Mangla28-Jan-08 17:27 
GeneralRe: Choose between cURL and WinInet Pin
Hamid_RT28-Jan-08 19:32
Hamid_RT28-Jan-08 19:32 
GeneralRe: Choose between cURL and WinInet Pin
David Crow29-Jan-08 2:58
David Crow29-Jan-08 2:58 
GeneralRe: Choose between cURL and WinInet Pin
Sudhir Mangla29-Jan-08 4:23
professionalSudhir Mangla29-Jan-08 4:23 
Generalinteresting question about new and nothrow new Pin
George_George28-Jan-08 16:39
George_George28-Jan-08 16:39 
GeneralRe: interesting question about new and nothrow new Pin
Maxwell Chen28-Jan-08 16:51
Maxwell Chen28-Jan-08 16:51 
GeneralRe: interesting question about new and nothrow new Pin
George_George28-Jan-08 19:21
George_George28-Jan-08 19:21 

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.