Author Topic: RC: fatal error RC1110 : could not open rsrc.rc  (Read 17753 times)

s0s0s

  • Guest
RC: fatal error RC1110 : could not open rsrc.rc
« on: April 20, 2013, 08:20:10 AM »
hi
i'm beginner with masm32 and i can't compile any code in my editor, anytime i want to compile anything(even clear page )
this error comes up :   RC: fatal error RC1110 : could not open rsrc.rc
my OS is windows 7 (64bit)
 Any help or advice would be greatly appriciated. 

Thanks.

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #1 on: April 20, 2013, 08:29:15 AM »
you are using a build method that requires a resource file
not sure what you are using - qEditor ?
but - select the proper build type for the file you are trying to assemble

these build method menu selections all point to batch files in qEditor
a couple weeks ago, i was working on a batch file that would handle all types of builds

http://masm32.com/board/index.php?topic=1770.0

but, let's see if we can get yours going, before we mess with an upgrade - lol

the basic steps are to assemble with MASM (aka ML.EXE)
then, to link with LINK.EXE

many projects also require resources to be linked with the program
so - that adds another step before LINK (RC.EXE is the resource compiler)

your project obviously does not require resources, and thus the error
you could probably create a minimal rsrc.rc file, and make it work   :P

s0s0s

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #2 on: April 20, 2013, 11:04:49 AM »
honestly i'm new in assembly could you plz exactly explain what should i do with the stuff that you said on that link.
thanks. :icon_rolleyes:

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #3 on: April 20, 2013, 11:42:16 AM »
no problem
it will take a little patience to get started - lol

let's start with a very simple asm file, and name it MyProg.asm
Code: [Select]
        INCLUDE    \masm32\include\masm32rt.inc

        .DATA

szMsg   db 'Message',0
szTitle db 'Title',0

        .CODE

Start:  INVOKE  MessageBox,0,offset szMsg,offset szTitle,MB_OK
        INVOKE  ExitProcess,0

        END     Start

let's also start by assembling it from the command line, rather than a menu
so, open a console window and change to the same folder as the asm file
Code: [Select]
C:\> \masm32\bin\ML /c /coff MyProg.asmthat should create a file named MyProg.obj, a COFF object file
now, we want to link it
Code: [Select]
C:\> \masm32\bin\link /SUBSYSTEM:WINDOWS /OPT:NOREF MyProg.objthat should create an EXE that runs and exits when you click the OK button

once you have succeeded with that, you know that ML, LINK, the INC files, and the LIB files are where they need to be

let us know what program you are using as an editor

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4807
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #4 on: April 20, 2013, 12:27:47 PM »
s0s0s,

It would probably help if you showed us the code you are trying to build.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

s0s0s

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #5 on: April 21, 2013, 12:57:17 AM »
code  worked exactly with the instruction you said dave .
it was my problem not masm32.
i think masm32 is more complicated than another assembler like fasm .
maybe i should take good tutorial about masm32 or back to the fasm .
my code that i wrote in editor it was very simple in the book that i'm reading for learn assembly language.
Code: [Select]
.MODEL FLAT ,STDCALL
.STACK
.DATA
.CODE
END
that's it.
but it did't work ,anyway, thanks for you're guidance and give me some rudimentary tutorial about masm32.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 4807
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #6 on: April 21, 2013, 01:24:33 AM »
This looks like old 16 bit code, what is the book ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

dedndave

  • Member
  • *****
  • Posts: 8734
  • Still using Abacus 2.0
    • DednDave
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #7 on: April 21, 2013, 01:43:12 AM »
well - it seems to be 32-bit, as it uses the Flat model
but, it isn't necessary to declare a .STACK section in 32-bit   :P
he is coming from FASM world - "Flat Assembler"

FASM is probably simpler, but i am guessing the macro capabilities of MASM are better
it takes some getting used to, if you come from some other assembler, of course

s0s0s

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #8 on: April 21, 2013, 02:10:58 AM »
you know when you must call some library in assembly language is not very nice maybe it's very useful but for the beginners like me don't expect something like that ,anyway i think it's better for me work with both masm32 and fasm .
the book name is  : Programming Assembler Language by peter abel

Magnum

  • Member
  • *****
  • Posts: 2235
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #9 on: April 21, 2013, 05:00:28 AM »
The functions are in the libraries and include files.

Just study the examples and you will learn it quickly.

In my opinion, masm is more versatile than fasm is.

Andy
Take care,
                   Andy

Ubuntu-mate-16.04-desktop-amd64

http://www.goodnewsnetwork.org

Ghandi

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #10 on: April 22, 2013, 06:15:29 PM »
As for learning how to use it, I didn't have a single bit of experience with programming before I picked up some ASM via MASM/OllyDbg and I honestly think it has been more straightforward and easy than any of the other languages I've dabbled with.

HR,
Ghandi

jameson

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #11 on: October 08, 2013, 08:51:22 PM »
I AM JUST TRYING TO LEARN ASSEMBLY PROGRAM USING MASM 32 BUT I TOO IS FACING SIMILAR PROBLEM, CAN ANY BODY HELP ME OUT.
THAT IS fatal error RC1110 : could not open rsrc.rc

jj2007

  • Member
  • *****
  • Posts: 7541
  • Assembler is fun ;-)
    • MasmBasic
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #12 on: October 08, 2013, 09:42:29 PM »
If it says "could not open rsrc.rc", then it might be a good idea to check why it can't find the file rsrc.rc, right?

Besides,
1. We are very bad at reading your thoughts and/or your computer configuration from a distance, so it would be an excellent idea to explain in full detail what you have done before you saw this error. You can also zip your code and post it.
2. NO NEED TO SHOUT HERE, our ears are still OK.

Welcome to the Forum :icon14:

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #13 on: October 09, 2013, 03:22:58 AM »
If you are working in the MASM32 Quick Editor, and you open a .asm file, and there is no rsrc.rc file in the directory of the .asm file, and you then select Compile Resource File from the Project menu, then the resource compiler will report:
Code: [Select]
RC : fatal error RC1110 : could not open rsrc.rc

AFAIK there is no other way to cause the resource compiler to run when there is no rsrc.rc file present in your working directory. For the Build All and Console Build All commands the resource compiler will run only if a rsrc.rc file is present. If you are a beginner, and your project does not include a resource file, you should probably start with the Assemble ASM file command. Then when you are able to assemble the file without error, try to create an EXE with the Console Link OBJ file command.

Well Microsoft, here’s another nice mess you’ve gotten us into.

Ris

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #14 on: November 08, 2013, 10:05:03 AM »
I have the same problem with this message:

Quote
RC : fatal error RC1110 : could not open rsrc.rc

From some reason program always put rsrc.rc as default resource file although I have my own resource file with the same name as asm file.

I'm working with RadASM