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

qWord

  • Member
  • *****
  • Posts: 1454
  • The base type of a type is the type itself
    • SmplMath macros
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #15 on: November 08, 2013, 10:20:42 AM »
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.
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

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #16 on: November 09, 2013, 03:41:43 AM »
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

  • Member
  • *****
  • Posts: 7558
  • Assembler is fun ;-)
    • MasmBasic
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #17 on: November 09, 2013, 05:58:02 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

  • Member
  • *****
  • Posts: 1454
  • The base type of a type is the type itself
    • SmplMath macros
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #18 on: November 09, 2013, 07:54:49 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

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #19 on: November 09, 2013, 08:40:37 AM »
Quote
Welcome in the club ;-)

buona sera, amico!


Quote
If you have access to a batch file, try this:

which one .bat file? ))

Ris

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #20 on: November 09, 2013, 08:48:47 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

  • Member
  • *****
  • Posts: 1454
  • The base type of a type is the type itself
    • SmplMath macros
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #21 on: November 09, 2013, 09:13:26 AM »
OK, you are using RadASM 2.x!
Try your luck by replacing rsrc in the MakeDefNoProject section with $.

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

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #22 on: November 10, 2013, 02:00:06 AM »
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

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #23 on: November 10, 2013, 09:41:07 AM »
I've found them into Environment Variables. That means, nothing from my completely portable RadASM folder )))

qWord

  • Member
  • *****
  • Posts: 1454
  • The base type of a type is the type itself
    • SmplMath macros
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #24 on: November 10, 2013, 10:33:22 AM »
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

  • Guest
Re: RC: fatal error RC1110 : could not open rsrc.rc
« Reply #25 on: November 10, 2013, 10:58:51 AM »
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:

« Last Edit: November 11, 2013, 10:40:24 AM by Ris »