Project: error PRJ0003: error occuring "rc.exe" .. this is the error I get when I try to...">

1> Project: error PRJ0003: error occurrence of "rc.exe"

1> Project: error PRJ0003: error occuring "rc.exe" .. this is the error I get when I try to run this little program to read and write files, which I cannot do because of the reason, the ability to open files correctly. I am using microsoft visual C ++ 2008 and I used the file path to try to open the file and I can not help someone?

#include <iostream> #include <fstream> using namespace std; int main () { ifstream infile; ofstream myfile; int num; infile.open("example.txt"); if(infile.fail()) { cout << "error" << endl; } myfile.open ("example.txt"); if(infile.fail()) { cout << "error" << endl; } while(!infile.eof()) { example >> num; } while(!myfile.eof()) { example << num; } infile.close(); myfile.close(); return 0; } 
+6
c ++ visual-c ++ fatal-error
source share
7 answers

There is something wrong with your Visual Studio setup, it should never have problems finding and running rc.exe. The first thing to check is whether there is a file. It should be located in the c: \ program files \ microsoft sdks \ windows \ v6.0a \ bin \ rc.exe folder.

Next, check that the paths are set correctly. Tools + Options, projects and solutions, directories in C ++. Above right: Show directories for = Executable files. Make sure that ($ WindowsSdkDirs) \ bin is listed here. Try adding the folder name explicitly. If the last step works, your registry is messed up. Refuse a little, run the Setup.exe program and select "Repair".

+3
source share

Reason for the notorious: Error occurring "rc.exe"

  • You recently installed Visual Studio 2008 (VS2008)
  • Then we patch the patch with Service Pack 1 (SP1)
  • And find that the VS environment variables are screwed, like $ (WindowsSdkDirs).

This occurs when the service pack incorrectly tells the registry where the installation directory is. To fix this:

  • Close Visual Studio 2008
  • Start> Run> Regedit
  • Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SDK \ Windows
  • Add new string value CurrentInstallFolder (if it does not already exist)
  • Give this key the value C: \ Program Files \ Microsoft SDK \ Windows \ v6.0A \ (or wherever you install it)

When you restart VS2008, you must compile your program correctly.

+5
source share

Make sure that one of the Executable Files directories (edited through Tools-> Options-> VC ++ Directories) contains both RC.exe and RcDll.Dll.

The required RC.exe will most likely be placed in "C: \ Program Files \ Microsoft SDK \ Windows \ XXX \ Bin", where XXX is a different version number.

If the specific version of the Microsoft SDK does not contain RC.exe, you can download the latest version of Microsoft and specify "Executable files" directly in the new directory, try not to use the $ macro (WindowsSdkDir), as it may still point to the old sdk directory.

+1
source share

Your rc.exe may be missing from this path:

 c:\program files\microsoft sdks\windows\v6.0a\bin\rc.exe 

If this is your problem, you can copy this application from your friend computer. hehe ..

+1
source share

I understand that this is old, but I fixed the same error by setting the "tools" option when installing the Windows SDK. By default, this option is selected, I deleted it, believing that Visual Studio tools will be used.

(using the Windows SDK 7.1)

+1
source share

The registry has nothing to do with the settings in Visual Studio! You will find many false and incorrect answers to this question!

A detailed description of the problem can be found at the link below. You can also download missing files here.

http://netcult.ch/elmue/Error_spawning_rc.exe.htm

0
source share

I also had this case.

After reviewing Elmue's answer (elsewhere on this page), I found out that this was caused by installing VS2008 + VS2010 + SDK, and then deleting all and deleting some folders manually. After reinstalling VS2008 and SDK in a non-standard folder, the RC.EXE file was simply not there, something was confused in the installation, where some registry entries pointed to the default SDK folder (instead of the non-standard one that I used). Fixing registry entries does not work. After starting the Repair installation SDK, he simply “fixed” the entries to point in the wrong direction, but RC.EXE is still not installed.

In the end, I had to bite a bitter apple: they removed everything and reinstalled the SDK + VS2008 in their standard folders. Then it worked!

0
source share

All Articles