What is wrong with this function that I can not get resource content?

novice2 sorrybo at ema.ail
Thu Feb 6 05:21:09 UTC 2020


On Wednesday, 5 February 2020 at 20:01:19 UTC, Marcone wrote:
> Sorry! Solved. Just need add # in this line:
>
> get_resource("#300", "BMP", "melancia.bmp");

the mistake, very imho, is not check windows API functions 
results.
you can use wenforce:
https://dlang.org/phobos/std_windows_syserror.html#.wenforce


More information about the Digitalmars-d-learn mailing list