Subj : Re: resource files To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Fri Nov 19 2004 07:34 pm Jack Sawatzky wrote: >When a .res file is linked to your application, does it mean a reference >to the .res >file is passed, or is the data actually appended to the final .exe file, >making it larger? The compiled resource is appended. >I ask because when I use BRC32 to link a bitmap resource, it has no >effect on the >size of the .exe, which leaves me wondering if I'm not using BRC32 >right. At runtime >LoadBitmap returns with an error, but GetLastError only returns 0, so I The help makes no mention of GetLastError, so it probably isn't set. (The help almost always tells you to check GetLastError if it has any meaning) >can't tell >if the problem lies with the resource data or the LoadBitmap parameters. BRC doesn't add the resource to your exe, is only compiles the .rc into a .res (The help says it can add it, but that feature doesn't work) Use the linker to link the compiled obj, lib and res files. .