Click here to Skip to main content
15,893,644 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question*objectName Vs objectName-> Pin
rahul.kulshreshtha18-Apr-11 21:33
rahul.kulshreshtha18-Apr-11 21:33 
AnswerRe: *objectName Vs objectName-> Pin
Niklas L18-Apr-11 21:58
Niklas L18-Apr-11 21:58 
GeneralRe: *objectName Vs objectName-> Pin
rahul.kulshreshtha18-Apr-11 22:21
rahul.kulshreshtha18-Apr-11 22:21 
GeneralRe: *objectName Vs objectName-> Pin
Niklas L18-Apr-11 22:41
Niklas L18-Apr-11 22:41 
GeneralRe: *objectName Vs objectName-> Pin
rahul.kulshreshtha19-Apr-11 0:11
rahul.kulshreshtha19-Apr-11 0:11 
AnswerRe: *objectName Vs objectName-> Pin
«_Superman_»18-Apr-11 22:09
professional«_Superman_»18-Apr-11 22:09 
GeneralRe: *objectName Vs objectName-> Pin
rahul.kulshreshtha18-Apr-11 22:19
rahul.kulshreshtha18-Apr-11 22:19 
Questionpreprocessor directives - resource Pin
g_satish18-Apr-11 21:03
g_satish18-Apr-11 21:03 
HI Guys,

I am using visual studio 2010 and I need to change the Mainframe icon at runtime based on my requirement so I have defined a macro _CHANGEICO. If this macro is defined I need to use some different icon and so I modified the .rc file accordingly and saved. Now If add any string or any new item to the resource all my macro declaration is deleted from the .rc file.

For example I have tried the following i.e. modified the resource file like this


#if defined(_CHANGEICO)
IDR_MAINFRAME ICON "res\\Orbit.ico"
#else
IDR_MAINFRAME ICON "res\\Sun.ico"
#endif

(OR)

#ifdef _CHANGEICO
IDR_MAINFRAME ICON "res\\Orbit.ico"
#else
IDR_MAINFRAME ICON "res\\Sun.ico"
#endif

After the above changes,I have added string to resource from visual studio, the .rc file is getting modified automatically like this

IDR_MAINFRAME ICON "res\\Sun.ico"

Can any one please help me in solving this issue, My changes should not be altered by the visual studio.
AnswerRe: preprocessor directives - resource Pin
Niklas L18-Apr-11 22:04
Niklas L18-Apr-11 22:04 
AnswerRe: preprocessor directives - resource Pin
వేంకటనారాయణ(venkatmakam)18-Apr-11 23:32
వేంకటనారాయణ(venkatmakam)18-Apr-11 23:32 
QuestionRe: preprocessor directives - resource Pin
g_satish19-Apr-11 0:03
g_satish19-Apr-11 0:03 
AnswerRe: preprocessor directives - resource Pin
Niklas L19-Apr-11 0:33
Niklas L19-Apr-11 0:33 
GeneralRe: preprocessor directives - resource Pin
g_satish19-Apr-11 0:42
g_satish19-Apr-11 0:42 
GeneralRe: preprocessor directives - resource Pin
David Crow19-Apr-11 7:22
David Crow19-Apr-11 7:22 
GeneralRe: preprocessor directives - resource Pin
g_satish19-Apr-11 19:12
g_satish19-Apr-11 19:12 
AnswerRe: preprocessor directives - resource Pin
వేంకటనారాయణ(venkatmakam)19-Apr-11 0:33
వేంకటనారాయణ(venkatmakam)19-Apr-11 0:33 
QuestionDuplicates in list Pin
sadas232341s18-Apr-11 8:28
sadas232341s18-Apr-11 8:28 
AnswerRe: Duplicates in list Pin
Chris Losinger18-Apr-11 9:18
professionalChris Losinger18-Apr-11 9:18 
GeneralRe: Duplicates in list Pin
sadas232341s18-Apr-11 9:20
sadas232341s18-Apr-11 9:20 
GeneralRe: Duplicates in list Pin
Chris Losinger18-Apr-11 9:27
professionalChris Losinger18-Apr-11 9:27 
GeneralRe: Duplicates in list Pin
sadas232341s18-Apr-11 9:29
sadas232341s18-Apr-11 9:29 
GeneralRe: Duplicates in list Pin
Chris Losinger18-Apr-11 9:38
professionalChris Losinger18-Apr-11 9:38 
GeneralRe: Duplicates in list Pin
sadas232341s18-Apr-11 9:39
sadas232341s18-Apr-11 9:39 
AnswerRe: Duplicates in list Pin
Luc Pattyn18-Apr-11 9:53
sitebuilderLuc Pattyn18-Apr-11 9:53 
GeneralRe: Duplicates in list Pin
sadas232341s18-Apr-11 9:58
sadas232341s18-Apr-11 9:58 

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.