Link to home
Start Free TrialLog in
Avatar of MAXcom
MAXcom

asked on

16bit color from DLL?

Hi,
Using the image editor to build a res file so I can in turn put it into a DLL and call that DLL from my program only gives me a 256 color bmp. I would like to store 16 and 24bit color BMPs or JPGs in the DLL but do not know how.

Also, please include code to read that image from a dll into an application's tImage object as well as steps for creating such a DLL.

Thanks a lot.
Avatar of inthe
inthe

hi,
you should read this project :

How to create and use resource-only DLL's
This great tutorial is divided in two parts: the first one gives a detailed explanation on resource files, how to create them and how to create resource-only DLLs. Everything is well-documented with source code and a sample library. The second part is an application that will load the DLL created in the first part of the tutorial and use the several types of resources (Wave, AVI, cursor, ...) that the library contains... all with full, well-documented source code. The compiled resources and applications are also included.  

http://www.bhnet.com.br/~simonet/archive/resonlydll.zip

ASKER CERTIFIED SOLUTION
Avatar of Stuart_Johnson
Stuart_Johnson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just one short hint: Use LoadImage instead of LoadBitmap. That gives you more control over the bitmap.

Regards, Madshi.
Thanks, MAXcom.  Much appreciated.  Glad to help.

Stu.
Avatar of MAXcom

ASKER

thanks to YOU