Resource for bitmap

This forum is meant for questions and discussions about the X# language and tools
Post Reply
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

Resource for bitmap

Post by boonnam »

How do you convert this line of VO code to X#?

Code: Select all

RESOURCE IDB_LOGO BITMAP QLAQLADATAQL32USERSUTUIAIMAGESUTUIA-LOGO-16-333X82.BMP

I thought at one time it was able to compile using something like this

Code: Select all

IDB_LOGO BITMAP QLAQLADATAQL32USERSUTUIAIMAGESUTUIA-LOGO-16-333X82.BMP
But now I can't get it to build.  I'm getting an error for file not found.

Thanks, 
Boonnam
User avatar
Chris
Posts: 4899
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Resource for bitmap

Post by Chris »

Hi Boonam,

I assume you have this in a .rc file (not in a .prg), is that correct?
Problem probably has to do with the backslashes, better just use double ones, but for all subfolders, as in

QLAQLADATAQL32USERSUTUIAIMAGESUTUIA-LOGO-16-333X82.BMP

And to make sure it's not a problem with relative paths, if the above does not work, please try to use an absolute path (but keep using double back slashes)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

Resource for bitmap

Post by boonnam »

Chris,

Thank you for the quick reply.  It turn out both relative and absolute paths with the double slashes works, but I have to rename the bmp from "UTUIA-LOGO-16-333X82.BMP" to "UTUIA_LOGO_16_333X82.BMP".
Post Reply