Click here to Skip to main content
15,885,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i see this error when building my project in VS2010. when i run it says .exe file is missing. build the project and retry. when i build again it same error given below appears. can anyone solve this? The project was downloaded from internet.

CSS
Error   1   The command ""C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe"  /d USE_PNG  /i "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include"   /i "c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\..\..\vc\include"   /r "C:\Users\spiro41\Downloads\SplashScreenSample_1_10_2009\win32res.rc"
" exited with code 3.   SplashScreenSample
Posted
Updated 22-May-18 9:44am
v2
Comments
Andreas Gieriet 30-Jan-13 6:09am    
"What did you do before you did nothing?" ;-)
An empty project or did you add/modify some resources? rc.exe is the resource compiler.
There is most likely more error text. Have a look in the Output window of VS2010.
Cheers
Andi
Prabhu_Sri_ 5-Feb-13 9:42am    
i just downloaded from internet
Andreas Gieriet 5-Feb-13 11:33am    
See my solution below.
Andi
ZurdoDev 30-Jan-13 8:42am    
Look in the build options. It may be trying to do something extra.

What is reported in the output window (not the error window) of VS2010?
What do you mean by ".exe file is missing"? Which exe file?

So, that means you build twics and you get different errors in each build?

Do these paths exist in your system:
- C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe
- C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
- c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\..\..\vc\include
- C:\Users\spiro41\Downloads\SplashScreenSample_1_10_2009\win32res.rc

As I said: there must be some text in the output window of VS2010.
Check that and give feedback if it helps.

Cheers
Andi
 
Share this answer
 
Comments
Prabhu_Sri_ 25-Feb-13 7:23am    
Instead of the following path-C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include, the system has C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include. I cant find any remedy. kindly help me.. i need to run that project
Andreas Gieriet 25-Feb-13 7:38am    
Do you have multiple versions of Visual Studio installed?
1) Open the Visual Studio Command Prompt from the start menu
2) check the location of the respective tools:
where rc.exe
3) if this fails or points to the wrong directory, check if you properly un-install former VisualStudio versions.

Maybe, also the csproj file contains absolute references. Open the respective csproj file in a text editor and search for the offending paths. Replace by the correct ones.

Cheers
Andi
Prabhu_Sri_ 26-Feb-13 5:37am    
i have visual studio 2010 professional
---
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

c:\Program Files\Microsoft Visual Studio 10.0\VC>where rc.exe
c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\RC.Exe

c:\Program Files\Microsoft Visual Studio 10.0\VC>
i typed the command you said and i got the above output. kinly refer
Andreas Gieriet 26-Feb-13 6:33am    
And what's about the csproj file?
And absolute references there (open the csproj file in a text editor and search for v6.0a) or as Richard suggested: check the rc script content for that path entry)?
Andi
Prabhu_Sri_ 9-Mar-13 0:43am    
To dear Andreas Gieriet. Thanks for your post.

i searched for v6.0a nut it didn't appear anywhere.i think there is no option to open and run that project bcos somewhere the old reference is appearing which i can' find.
kindly give me any possible options. if none of the ideas work i think i need to create a new one.


I used windows 7 powershell for the first time. I followed and typed the command given by you.
but it throwed the following message

Select-String : The file C:\Users\spiro41\Documents\Visual Studio 2010\Projects\12byte\12byte can not be read: Access t
o the path 'C:\Users\spiro41\Documents\Visual Studio 2010\Projects\12byte\12byte' is denied.
At line:1 char:35
+ gci . "*.*" -r | %{ select-string <<<< -path $_.fullname -patt 'v6.0a' }
+ CategoryInfo : InvalidArgument: (:) [Select-String], ArgumentException
+ FullyQualifiedErrorId : ProcessingFile,Microsoft.PowerShell.Commands.SelectStringCommand
Look at the content of your resource script file win32res.rc and make sure there are no references to items that do not exist. Also check the project settings for the file, since it looks as if it is trying to find items in an old version of the SDK, and it uses a couple of very old options which are no longer valid.
 
Share this answer
 
I had this same problem while trying to build the CSActiveX sample program. I basically ran the program from command line with the correct file paths but it still crashed saying it could not open file .../CSActiveX.rc. I made a blank text file in notepad, renamed to CSActiveX.rc and saved in the target path in the command. This time it worked. I think it will only compile to a file already exiting and won't create a new one the very first time.
 
Share this answer
 

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