Andreas Bonini
Andreas Bonini

Reputation: 44792

How to rename a resource in Visual Studio?

Okay, I've never done win32 programming before, and I have a question that seems fairly stupid..

enter image description here

How do I rename IDR_MENU1 to, for example, IDR_MAIN_MENU? I tried everything couldn't find a way.

Upvotes: 12

Views: 9458

Answers (3)

Dave D.
Dave D.

Reputation: 151

This is from 2011, but I didn't see a good answer.

Here is one easy way to rename IDR_MENU1 to another name. Select IDR_MENU1, then hit ALT + ENTER. This will show the 'Properties' window. Here you can rename IDR_MENU1 under 'Id'.

Upvotes: 15

santiagoIT
santiagoIT

Reputation: 9431

You can modify the resource if you select your resource, example IDR_MENU1 in resource view. Activate the property palette (Ctrl +W, P) and you can then edit the IDR_MENU1 value.

Upvotes: 11

noops
noops

Reputation: 63

Exit Visual Studio and then edit the DbcEditor.RC file. And replace all occurrences of IDR_MENU1 with whatever you want.

Upvotes: 2

Related Questions