Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Way to combine icons into DLL files

197 views
Skip to first unread message

car...@umassd.edu

unread,
Jan 5, 1995, 1:27:27 AM1/5/95
to
Is there some program or simple technique (using Visual C++) that I can
combine individual ICO files into a DLL file? I want to do this because I
have some 256 color icons that aren't compatible for some reason with ICL
files. Thanks.

Stan Brown

unread,
Jan 5, 1995, 1:17:42 PM1/5/95
to

Program ICOSHOW. I can't remember whence I ftp-ed it, but you could
contact the author, Harald Pitro, at 10002...@compuserve.com.
--
Stan Brown, Oak Road Systems br...@Ncoast.ORG
Can't find FAQ lists? ftp to 'rtfm.mit.edu' and look in /pub/usenet
(or email me >>> with valid reply-to address <<< for instructions).
I can also send "newbie" information on Usenet--just ask if you want it.

A.A. Olowofoyeku

unread,
Jan 6, 1995, 12:02:47 PM1/6/95
to
car...@umassd.edu wrote:
: Is there some program or simple technique (using Visual C++) that I can

: combine individual ICO files into a DLL file? I want to do this because I
: have some 256 color icons that aren't compatible for some reason with ICL
: files. Thanks.

Create a resource (.RES) file. Then put all the .ico files into the .RES
file. Then link the .RES file into your source code, and compile. The
resulting binary (EXE or DLL) will contain all the icons. You don't need to
export anything. Any of the icons can be retrieved by a call to LoadIcon().

I don't use C++ myself so I can't tell you how to do it in C++. However,
this is what you would do in Borland Pascal.

{//// sample Borland Pascal code ///}
Library IcoLib; { we are compiling a DLL}
{$R icons.res} { link the resources from icons.res}
Begin
End.
{////// sample code ends ////}

That's it! Don't you just love Pascal :)

--
The Chief
---------
Dr. Abimbola A. Olowofoyeku (The African Chief)
Email: la...@keele.ac.uk
Author of: ** FTP **
Chief's Installer Pro (Win): oak.oakland.edu /pub/win3/install/cinstp11.zip
Windows Command Line (WCL) : oak.oakland.edu /pub/win3/shell/wincmd77.zip

0 new messages