14
Answers

Error rc 1110

Petal

Petal

14y
4.1k
1
Hi

I am trying to run a c++ code in Visual Studio 2008. I am getting the following error.


rc 1110:Could not open .\SampleViewer.rc".Then PRJ0002:error 1 returned from C:\ProgramFiles\MicrosoftSDks\Windows\v 6.0A\bin\rc.exe.

 I searched for the sampleviewer.rc file ..but i could only find sampleviewer.rc2??

The  C++ code is used for the proscilla camera. please anybody help me out.

THanks
Answers (14)
0
theLizard

theLizard

NA 5.1k 282.2k 14y
No rc, No res it's that simple, I don't need to understand what you said all I know is what you said is ^%$&^$&^&#^ if VC 6, which you are an xspurt with can't create the .rc file which I am sure that it does simply because I am sure that Microsoft developers are NOT idiots, have made sure that an rc file is created for its VC 6 or whatever other language's project resources.

I am not an expert  in anything I just know cow Sh** from Bull Sh** and I must say you have a lot of the later.
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
I said nothing about rc.exe, either directly or indirectly. Your understanding of what I said is influenced by emotions and therefore you are misquoting what I said so you can be negative.


Note that the person that created the thread created another thread so I might be confused about which one is which, but the problem is the same since both threads were created by the same person.



Yes the rc.exe utility just compiles RC files and related files. Yes the IDE reads and writes RC files when they are edited interactively by the IDE.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
Sam, you must be joking, you have no idea what rc.exe does and make contradictory statements then expect an apology. If the IDE is as smart as you say it is and that the ide overwrites any changes to it's managed rc file like you have said then it MUST stand to reason that the ide does create the project .rc file does it not. 

If it does not where the hell does the rc file come from? rc.exe DOES NOT CREATE these it JUST COMPILES them.
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
You could apologize.

It is not a matter of what you can say, it is a matter of listening to the facts.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
It's good that you have used VC 6 for a long time so you mus be a real xspurt, rc.exe has been around a long time what more can I say.
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
theLizard: You just don't know what you are talking about. Stop wasting people's time. You know enough about resource files to waste people's time but not enough about the VC 6 IDE to help with this. It is a waste of time for me to explain because you won't listen. I used the VC 6 IDE for years and you never have, right? So don't waste people's time.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
rc.exe is a generally available resource compiler it cannot and does not generate the .rc file, .rc files can be created with a simple text editor like notepad.  I am sure that  C# and I assume VS C++ can generate an .rc file with MS enhancements but the rc does not necessarily need the ms enhancements to compile a .res file which is ultimately what is compiled into an exe or dll.

I also know that C++ Builder from Embarcadero will just as happily create a .res file from a .rc  file with the following example

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
/////////////////////////////////////////////////////////////////////////////

TLIZARDAGENT                    BITMAP                  "TLIZARDA1.BMP"
TLIZARDFORMSAGENT               BITMAP                  "TLIZARDA2.BMP"
TLIZARDODBCONNECT               BITMAP                  "odbcsql.bmp

And this "It cannot write out a RC if it does not have one to read in." is contradictory to your earlier statement. If the IDE does not create the .rc and I know for a fact that rc.exe does not, what does?


0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
It can't because it generates the RC from the RC. It cannot write out a RC if it does not have one to read in.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
that is not what I meant, it is to see what happens only, will it generate a new .rc based on the project needs as you say anything outside the ide will be replaced with one generated by the ide, that is the intention.
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
I was not sure if I needed to mention this or not, but the IDE reads in the RC, edits it in the IDE, then writes it back. Any modifications outside of the IDE can be lost; they will be if they are not consistent with the editor. So no, a new one can't be generated from data elsewhere.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
Sam, I don't use MS Visual C++ so was not aware of that about rc2, I have learned something new today :) but there would be no harm in trying that since compiling would either do the job or replace the rc file with a new one if that is what VS C++ does.


0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
theLizard: First note that this is for C++. For C++ Windows programs Visual Studio creates projects with a RC file and a RC2 file. The RC file gets re-written when resources are modified within VS. The RC2 file is created for customization by the developer. It is unlikely that the RC2 file has the resources that the program needs.
0
theLizard

theLizard

NA 5.1k 282.2k 14y
Why don't you just make a copy of the SampleViewer.rc2 and rename the original to SampleViewer.rc and see what you get!

rc.exe is just looking for the resource script it wants to compile the resources poited to by the SampleViewer.rc
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
You must find SampleViewer.rc; you can't do anything more without it.