BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ImageList fail on win95

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Daniele Pellone
Guest





PostPosted: Wed Jul 30, 2003 12:09 pm    Post subject: ImageList fail on win95 Reply with quote



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





PostPosted: Wed Jul 30, 2003 12:38 pm    Post subject: Re: ImageList fail on win95 Reply with quote



Probabily that object is not supported by Win95...

Sei italiano?


Back to top
Jonathan Arnold
Guest





PostPosted: Wed Jul 30, 2003 12:50 pm    Post subject: Re: ImageList fail on win95 Reply with quote



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:

Quote:
Marold, what you experience in all probability is caused by a version
mismatch of the Microsoft COMCTL32.DLL. Typically, old versions of Windows
95 or installations without Internet Explorer 4.0 (and later) exhibit this
problem.

Please make sure that the most current COMCTL32.DLL is available on all
the systems you deploy to; you can get an installation distributable from
Microsoft via

http://www.microsoft.com/msdownload/ieplatform/ie/comctrl.asp

Additional, important installation information can be found at

http://support.microsoft.com/support/kb/articles/Q186/1/76.ASP

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. Smile


--
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





PostPosted: Wed Jul 30, 2003 1:35 pm    Post subject: Re: ImageList fail on win95 Reply with quote

Hi Arnold, thank you of your help.

Daniele


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.