Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I am doing some improvements to an application in VS2008 in C++.

When I try to edit resources (for example add an entry in the string table), the editor changes the rc file language from LANG_ENGLISH to LANG_NEUTRAL and a non English text is replaced with question marks.

If I edit the rc file externally (in notepad), and then load it in VS2008 it works fine.

Can anybody help me solve this?
Thanks

Shimon
Posted
Updated 20-May-10 3:45am
v2

1 solution

What happens if you set the neutral language to be english?

for C# this is done by adding this to the AssemblyInfo.cs, but as it's a .Net feature you should be able to do the same in C++ (syntax may differ):

[assembly: NeutralResourcesLanguageAttribute("en")]
 
Share this answer
 
Comments
dj4400 25-May-10 10:04am    
Hi,
Thanks for your response.
Do you mean changing it dynamically or after it is being replaced from english - statically?
Martin Jarvis 25-May-10 10:05am    
Statically, so that your neutral language will use the 'en' settings (which seems to work for you)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900