 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daniele Pellone Guest
|
Posted: Wed Jul 30, 2003 12:09 pm Post subject: ImageList fail on win95 |
|
|
Hi at all !!!
When I install my application on win95, at the run, I get the following
error: "Failed to read ImageList data from stream". While in other SO the
application work fine.
Anyone any ideas? I use BCB6.
Thanks in advance
Daniele
|
|
| Back to top |
|
 |
b Guest
|
Posted: Wed Jul 30, 2003 12:38 pm Post subject: Re: ImageList fail on win95 |
|
|
Probabily that object is not supported by Win95...
Sei italiano?
|
|
| Back to top |
|
 |
Jonathan Arnold Guest
|
Posted: Wed Jul 30, 2003 12:50 pm Post subject: Re: ImageList fail on win95 |
|
|
| Quote: | When I install my application on win95, at the run, I get the following
error: "Failed to read ImageList data from stream". While in other SO the
application work fine.
Anyone any ideas? I use BCB6.
|
A posting from Stefan explains this nicely:
Also, a way to avoid this problem was posted by Igor Siticov:
| Quote: | You can export all bitmaps stored in your ImageList into one bitmap file
(use "Export" button in ImageList editor) for example "toolbar.bmp". After
that you can create RC script manually or using some editors. For manually
creating just create a file for ex. bitmaps.rc with content:
TOOLBARBMPS BITMAP "toolbar.bmp".
Compile this file using BRCC32.EXE (placed in Builder's BIN directory) or
some other compiler and you'll get bitmaps.res file. Add to your program
code following directive:
#pragma resource "bitmaps.res".
In FormCreate event use
ResourceLoad(ImgList::rtBitmap, 'TOOLBARBMPS',
clSOME_COLOR_FOR_TRANCPARENT);
method of image list for loading images into imagelist. And you will always
have bitmaps independent from version of COMCTL32.DLL.
P.S. Don't forget to clear imagelist after exporting.
|
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
http://www.keen.com/categories/categorylist_expand.asp?sid=5156620
Comprehensive C++Builder link site:
http://www.buddydog.org/C++Builder/c++builder.html
|
|
| Back to top |
|
 |
Daniele Pellone Guest
|
Posted: Wed Jul 30, 2003 1:35 pm Post subject: Re: ImageList fail on win95 |
|
|
Hi Arnold, thank you of your help.
Daniele
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|