The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: Manos on March 07, 2011, 09:43:07 AM

Title: Could not find file
Post by: Manos on March 07, 2011, 09:43:07 AM
GoRC is a very good and fast RC Compiler.
But, I think, it has a problem with paths.
I found a problem when I use GoRC in my IDE, named Coder's Studio.
When I compile the .rc file with GoRC in a MDI project, I take the follow:

Line 27 of Resource Script (C:\MyProjects\Project1\Project1.RC):-
Could not find file:-
Res/Toolbar.bmp
.

The Toolbar.bmp is included in the subfolder Res.

If I use MS RC or PoRC, no problem.

Manos.
Title: Re: Could not find file
Post by: wjr on March 07, 2011, 03:34:42 PM
At first I thought you should use a backslash and remove the trailing period, but that doesn't appear to be the problem...

I get GoRC working fine with a Res subfolder when building from a batch file run from within the Project1 folder.

You are supplying the full path name of the RC file to GoRC. Within the RC file, from the documentation, "unless the file is in the current directory, the full path should be given". You are not using the full path of the resource in the RC file, so does your IDE set the current directory to "C:\MyProjects\Project1"?
Title: Re: Could not find file
Post by: Manos on March 07, 2011, 03:57:48 PM
No.

I use the full path of the resource for the RC file.

Manos.
Title: Re: Could not find file
Post by: donkey on March 07, 2011, 05:38:30 PM
Well, the path in the error is "Res/Toolbar.bmp." which is a relative path, if that's the case the IDE is probably not setting the directory to the project folder. The relative paths in resource scripts work fine as long as they are relative to the current directory.
Title: Re: Could not find file
Post by: Manos on March 07, 2011, 05:53:53 PM
This is the Command line:

C:\Bin\GoRC.exe /v /Fo C:\MyProjects\Project1\Release\Project1.res C:\MyProjects\Project1\Project1.rc

Manos.
Title: Re: Could not find file
Post by: jj2007 on March 07, 2011, 06:40:56 PM
Your commandline does not set the current folder to C:\MyProjects\Project1\Release or C:\MyProjects\Project1
Try setting the full path inside the rc file, and note that you need double backslashes
\\MyProjects\\Project1\\Res\\Toolbar.bmp
Title: Re: Could not find file
Post by: dedndave on March 07, 2011, 06:43:04 PM
hiya Manos

as far as i can see, the GoRc program does not provide for seperate path/file specs
http://www.godevtool.com/ResourceFrame.htm

you might try letting it build in "whatever" directory, then moving the result file with batch commands
Title: Re: Could not find file
Post by: Ramon Sala on March 07, 2011, 08:53:35 PM
Hi Manos,

When Easy Code GoAsm compiles resources using GoRC, it first sets the current directory to the folder where the ".rc" file is. After running GoRC and the file has been compiled, the resultant ".RES" file is moved to the appropiate folder.

Regards,

Ramon
Title: Re: Could not find file
Post by: Manos on March 07, 2011, 09:00:32 PM
You are right Ramon.

I thinked this, but because my IDE support more than one Assemblers, Linkers and
RC Compilers, it is a little difficult to combinate all together.

Manos.
Title: Re: Could not find file
Post by: Ramon Sala on March 08, 2011, 08:42:06 AM
Hi Manos,

Yes, it is quite difficult to combine different assemblers, linkers and RC compilers. Some day I would like to remake Easy Code to support all known assemblers, but there are only 24 hours a day.

Ramon
Title: Re: Could not find file
Post by: Manos on March 08, 2011, 11:21:08 AM
Quote from: Ramon Sala on March 08, 2011, 08:42:06 AM
Hi Manos,

Yes, it is quite difficult to combine different assemblers, linkers and RC compilers. Some day I would like to remake Easy Code to support all known assemblers, but there are only 24 hours a day.

Ramon


This is the reason that I support MASM compatible Assemblers only.

Manos.