News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

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

Started by s0s0s, April 20, 2013, 08:20:10 AM

Previous topic - Next topic

qWord

Quote from: Ris on November 08, 2013, 10:05:03 AM
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.
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".
MREAL macros - when you need floating point arithmetic while assembling!

Ris

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?

jj2007

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.

qWord

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)
MREAL macros - when you need floating point arithmetic while assembling!

Ris

Quote
Welcome in the club ;-)

buona sera, amico!


QuoteIf you have access to a batch file, try this:

which one .bat file? ))

Ris

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.

qWord

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.
MREAL macros - when you need floating point arithmetic while assembling!

Ris

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.

.

Ris

I've found them into Environment Variables. That means, nothing from my completely portable RadASM folder )))

qWord

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
MREAL macros - when you need floating point arithmetic while assembling!

Ris

#25
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: