RC - paths

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

RC - paths

Post by FFF »

Have resource files, containing something like:
RSLE_CALCDN BITMAP "rsle_CALCDN.BMP"

Given, the containing app is a lib, where exactly looks x# for the image?

TIA
Karl
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

RC - paths

Post by Chris »

Hi Karl,

It looks at the same folder where that particular .rc file is located. This is not in the control of X#, it's the resource compiler (rc.exe) that handles .rc compilation, I checked if it supports additionally looking at some general pool folder for external files, but unfortunately it seems it doesn't.

Chris
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

RC - paths

Post by robert »

Karl,

If you are compiling inside VS then the last commandline for the call to the native resource compiler is stored in your <LocalAppdata>Temp folder. I think it is called LastXSharpNativeResourceResponseFile.Rsp In the same way the last response file for the compiler is stored in that folder as LastXSharpResponseFile.rsp.
You will see that the include path that is specified under the preprocessor settings is also included in the call to the native resource compiler as well as the defines defined there.
IIRC the native resource compiler is called with a current directory equal to the project directory.
This is controlled by the XSharp.Build DLL for which you can find the source at:
https://github.com/X-Sharp/XSharpPublic ... harp.Build

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply