To prepare icons for use with VisualAge for Windows, do the following:
/* empty.c */
#include <windows.h>
static char appName [] = "userpal";
int FAR PASCAL LibMain (HANDLE hInstance,
WORD wDataSeg,
WORD wHeapSize,
LPSTR lpszCmdLine)
{
if (wHeapSize > 0)
UnlockData (0) ;
return 1 ;
}
cl -c -AMw -Gsw -Ow -W2 -Zp empty.c
LIBRARY userpal DESCRIPTION 'Icons for user-extended palette' EXETYPE WINDOWS CODE PRELOAD MOVEABLE DISCARDABLE DATA PRELOAD MOVEABLE SINGLE
link empty libentry,userpal.dll/align:16,NUL,/nod \
mdllcew libw, userpal
100 ICON athltcat.ico 101 ICON runner.ico 102 ICON world.ico
RC userpal.rc userpal.dll
Your icons are now ready for use with VisualAge.
The procedure for building a resource DLL using bitmaps is the same, except that you use lines in the .rc file that look like this:
801 BITMAP runner.bmp
You can include icons and bitmaps in the same DLL.