fbpx
× Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET

RC - paths

More
1 year 5 months ago #1 by Karl Faller
RC - paths was created by Karl Faller
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

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic RC - paths
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

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #3 by Robert van der Hulst
Replied by Robert van der Hulst on topic RC - paths
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:
github.com/X-Sharp/XSharpPublic/tree/mas...lStudio/XSharp.Build

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.