[Help] Modify TerrainGen Project to fix .resx problem:Solved

kungfoomasta

20-01-2007 02:51:32

Remember my resx problem? I found one article on it:

Symptom message: "File 'c:\...XXX.resx' already exists in the project"

link: https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=57488&SiteID=1


Hi everybody,

I am developing an application using VC++ Express Beta2. I started using Beta 1, and then took the whole project to a different system with a freshly installed Beta 2.

After sorting out all differences, the project builds fine. But some time later, I have found that I cannot modify any GUI element in design mode. If I try that, I get a message box saying: "File c:\...MainWindow.resx already exists in the project". It happens even if I just change a button's position. If I click OK, I get the same error again and again, and I finally have to kill the IDE.

I have tried everything I have been able to think of, with no luck. If I modify the button position (oranything else) directly on the code, it works ok and the designed can see the update.

Any hints?

Thanks in advance.


And the solution:

I was having this problem with the recently released version of VC Express. Where it would repeatly bring up that error message as you said.

Then I found out the reason, the store my Forms in a directory different then the root directory to clearly separate the GUI elements of my app. What I noticed in the error message though was that the resx file it was complaining about was in the root directory, and applications i previously created with VS.NET 2003 were working.

The solution I found was to copy/paste the resx from the projects root directory into the same directory as your form. Then in the properities pane inside the IDE to change the Relative path to match. This resolved the issues I was having.


The .resx files need to be in the same folder as the .h file

I have verified this and it works. I can now work on the TG app again. *sigh of relief*

Also note that I am not using Express, but VS2005 Professional with Service Pack installed.

KungFooMasta

kungfoomasta

21-01-2007 01:30:04

More information using this:

Whenever I try to make a new windows form, the .resx file is produced in the same location as the project file. The fix is to move the .resx fil to the includes folder, and change the "relative path" of the resx file. (select resx file in solution explorer, and the properties box will have a "relative path" field).

Also, intellisense isn't working... probably because I don't see a *.ncb file anywhere. (type: VC++ Intellisense Database file)

This hasn't stopped me from working on the project, just thought I'd toss this information on the forums, maybe somebody will find it useful.

KungFooMasta