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.
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 (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
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:
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
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
C:\> \masm32\bin\ML /c /coff MyProg.asm
that should create a file named MyProg.obj, a COFF object file
now, we want to link it
C:\> \masm32\bin\link /SUBSYSTEM:WINDOWS /OPT:NOREF MyProg.obj
that 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
s0s0s,
It would probably help if you showed us the code you are trying to build.
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.
.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.
This looks like old 16 bit code, what is the book ?
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
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
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
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
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
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:
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:
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.
I have the same problem with this message:
QuoteRC : 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
Quote from: Ris on November 08, 2013, 10:05:03 AMQuoteRC : 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.
You can add the resource file manual:
in the project tree right click the resource group (or any other) ->
add Item ->
existing files -> select your resource file -> the file is now loaded. The next step is to mark it as main-resource file:
Menu->
Make->
"Toggle Current As Main File".
What if I'm not using projects? :)
everything works fine except this.
In any case, I'm not sure from where RadASM takes rsrc.rc instead of file with the same name as .asm file?
Quote from: Ris on November 09, 2013, 03:41:43 AM
What if I'm not using projects? :)
Welcome in the club ;-)
If you have access to a batch file, try this:
if exist "%filebody%.rc" (
set resfile="%filebody%.rc"
) else (
set resfile=rsrc.rc
)
echo Using %resfile%etc.
Quote from: Ris on November 09, 2013, 03:41:43 AM
What if I'm not using projects? :)
--> rsrc.rc ;-)
(one might try to edit the Make-section in masm.ini, but it seems that for resource compiling only the placeholder $R is available)
Quote
Welcome in the club ;-)
buona sera, amico!
QuoteIf you have access to a batch file, try this:
which one .bat file? ))
Quote from: qWord on November 09, 2013, 07:54:49 AM
(one might try to edit the Make-section in masm.ini, but it seems that for resource compiling only the placeholder $R is available)
[MakeDefNoProject]
11=rsrc.res,O,$B\RC.EXE /v,rsrc.rc
15=rsrc.obj,O,$B\CVTRES.EXE,rsrc.res
here?
[Win32 App]
1=4,O,$B\RC.EXE /v,1
5=rsrc.obj,O,$B\CVTRES.EXE,rsrc.res
15=rsrc.obj,O,$B\CVTRES.EXE,rsrc.res
or something form here? )))
You're on the home terrain here. I'm a newbie with MASM.
OK, you are using RadASM 2.x!
Try your luck by replacing
rsrc in the MakeDefNoProject section with
$.
Quote from: Ris on November 09, 2013, 08:48:47 AM
You're on the home terrain here. I'm a newbie with MASM.
this problem has nothing to do with MASM.
It looks like that it accepts a file name instead of rsrc.rc now
But....
Quote
C:\RadASM\Masm\Bin\RC.EXE /v "C:\RadASM\Masm\src\OPEN.rc"
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.
Using codepage 1252 as default
Creating C:\RadASM\Masm\src\OPEN.RES
RC: RCPP -CP 1252 -f C:\RadASM\Masm\src\RCa06736 -g C:\RadASM\Masm\src\RDa06736 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I C:\RadASM\Masm\src\ -I . -I C:\Masm32\ObjAsm32 -I C:\Masm32\ObjAsm32\Resources -I C:\Masm32\ObjAsm32\Resources\Dialogs
C:\RadASM\Masm\src\OPEN.rc.
Writing MENU:MENI, lang:0x409, size 60
Make error(s) occured.
Total compile time 1606 ms
As you can see I'm getting an error when I'm trying to compile my resource file from Make>Compile RC. But.. if I want to compile project with Make>Go, it works!!! How it could be possible?!? ))
Another question, how I can change paths from the previous report to show on my files inside RadASM/Masm folder? For now I'm using one copy of masm32 in its own folder and another inside of RadASM/masm folder. My idea is to create a portable IDE envirovnment and that I can change its location.
.
I've found them into Environment Variables. That means, nothing from my completely portable RadASM folder )))
did you take a look into the help folder? - there is a documentation for ini-files (RadASMini.rtf).
Maybe you get it run as required.
regards, qWord
I took a short look on that. It is a description of Radasm.ini. I didn't mention anything crucial at 1st sight.
I still cannot resolve error occurred with rc.exe although I can compile program :dazzled: