string vs. w/char*
J Chapman
jc at ch.com
Mon Feb 28 06:08:14 PST 2011
== Quote from Tyro[a.c.edwards] (nospam at home.com)'s article
> Both implementations results in error code 1812 being returned from
> GetLastError. explanation of the code reads:
> ERROR_RESOURCE_DATA_NOT_FOUND
> 1812 (0x714)
> The specified image file did not contain a resource section.
> The code I'm porting initially consisted of a resource.h file, a
> generic.rc file and two icons. I have not tried to include the icons and
> generic.rc file in the compilation because I do not know how to as yet
> and I've only used half of the resource.h file: didn't think I need the
> whole thing. Could this be the reason for the error? If so could you
> direct me to the explanation of how to prepare these files for inclusion
> in the compilation process?
> Thanks,
> Andrew
You need to compile the .rc file (see
http://www.digitalmars.com/ctg/rcc.html), then add the resulting .res file
to dmd's command line.
More information about the Digitalmars-d-learn
mailing list