.NETGURU
renaming project file ?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vc.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Chris
Hi,

I create a new VC++ project, then want to rename the default filename Form1
(used for .h, .cpp, .resx) to something else.

If I rename it from within Windows explorer the project becomes all messed
up.

So, how do I rename the files properly ?

thnx
Chris

Reply to this message...
 
    
Tarek Madkour [MSFT] (VIP)
"Chris" <Click here to reveal e-mail address> wrote in
news:O0iZc.232775$Click here to reveal e-mail address:

[Original message clipped]

First, you'll need to rename the files in the project. You can
either, rename the files from the command-line then go to the
solution explorer and make the project point to the new renamed
files. Or (easier), just rename the files from solution explorer
(which both renames the file on disk and makes the project point
to the new file name).

Second, you'll need to make resgen.exe use the correct name for
the .resources file. The correct name is
"namespace.formclassname.resources". You'll need to update the
input name property on the .resx file to reflect the correct name.
The reason you need to do this step is that, by default, the input
to resgen is set to use the "filename.resources" but now that the
filename is not the same as the class name, you need to make it
point to the class name.

Hope this helps.

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification