xsharp.eu • Resource for bitmap
Page 1 of 1

Resource for bitmap

Posted: Fri Jul 21, 2023 11:00 pm
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

Resource for bitmap

Posted: Fri Jul 21, 2023 11:13 pm
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)

Resource for bitmap

Posted: Sun Jul 23, 2023 9:05 pm
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".