Visual Studio 2010 insert copy of resource with condition disappears after save -



Visual Studio 2010 insert copy of resource with condition disappears after save -

in visual studio 2010 trying create re-create of dialog template resource status in order have 2 different versions of dialog in 2 different build configurations.

i have header file .rc file includes contains this:

#ifdef build_config1 #define res_define_1 #else #define res_define_2 #endif

so, go resource view in visual studio, right-click on dialog template , take "insert copy..." insert resource re-create dialog pops , set condition: res_define_2 , click ok.

at point, looks good. see both original dialog , re-create status in brackets [res_define_2]. save , i'm go.

here problem seems be. our version command scheme ancient, , based on locking single files. in previous versions of visual studio, we've archived *.rc files, , made sure resources up-to-date deleting *.aps files resource editor creates. whenever needed edit resource, visual studio regenerate *.aps file *.rc file

but, when delete *.aps file in vc2010, , reload resource in editor i'm missing conditional resource added. instead, see original idd_dialogname entry. in *.rc file , see i'm supposed to:

original dialog:

#if defined(apstudio_invoked) || !defined(res_define_2) idd_dialogname dialogex 0, 0, 301, 190 ...

copied dialog:

#if defined(apstudio_invoked) || defined(res_define_2) #if defined(apstudio_invoked) idd_dialogname$(res_define_2) dialogex 0, 0, 301, 190 #else idd_dialogname dialogex 0, 0, 301, 190 #endif ...

if go through adding copy, template in resource no #if @ all:

idd_dialogname$() dialogex 0, 0, 301, 190 ...

is *.aps file no longer generated .rc file? has else run , have workaround, or forced start storing *.aps files in our version command system?

update: yesterday, bad behavior @ will. morning showed boss , duplicated it. now, seems magically work on both machine , machine discovered on. haven't heard yet if boss can still happen.

now nobody can duplicate issue. weren't able find difference in steps took. lacking steps duplicate this, i'm answering remove list of outstanding questions.

visual-studio-2010 visual-c++ resource-files

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -