PRB: Combining Multiple Compiled Resource Files FailsLast reviewed: July 23, 1997Article ID: Q80281 |
3.00 3.10
WINDOWS
kbtool kbprg kbprb
The information in this article applies to:
SYMPTOMSAn application is unable to load some of its resources, while other resources load properly.
CAUSESeveral small compiled resource (RES) files have been combined using the MS-DOS command "COPY /b".
RESOLUTIONUse the #include directive to combine the files at the source level.
MORE INFORMATIONThe Resource Compiler that was shipped with the Microsoft Windows Software Development Kit (SDK) versions 2.x ca not handle large resource files because of inherent memory limitations. To work around these limitations, it is recommended that programmers compile the resources into small RES files, and combine these files using the MS-DOS COPY /b command. The Resource Compiler shipped with version 3.x of the Windows SDK has been enhanced to handle resource files much larger than its Windows 2.x counterpart. The format of the compiled resource files in Windows 3.x does not support concatenation of RES files. If an application has a large number of resources, even the version 3.x Resource Compiler can run out of memory. If this occurs, modify the design of the application to use a resource-only dynamic-link library (DLL). The following three steps outline the required process to perform this type of functionality:
int far pascal WEP(int NotUsed) { return 1; }The "far" and "pascal" declarators are in lowercase to avoid having to include the WINDOWS.H header file.
|
Additional reference words: 3.00 3.10 dialog icon menu bitmap cursor font
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |