Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LoadPicture and WinXP ICO format

Status
Not open for further replies.

SteveDingle

Programmer
Jul 26, 2004
254
GB
Heya All,

To start, I know next to nill about image files. I'm using LOADPICTURE to get an object reference to a ICO file and I keep getting an "Unknown COM status error". I have determined the problem stems from the fact the ICO file only has a single format - Windows XP. I never knew that was an actual format (as oppose to 16, 256)

If I add a new 256 format into the ICO file, no error. Just wondering if that is a prob with LOADPICTURE or if the file format is wrong.

Thanks

Toodles,
Steve Dingle
D&S Business Solutions Ltd
 
Generally, if your going to use something as a picture, you'd want it to be a picture format. .ICO is an "Icon" format, and while it is a picture, it is generally limited to 48x48x256 colors, though that's not an absolute. Regular pictures can be used as Icons as well... I've actually adopted a "No Icon" policy, and use .PNG files instead for buttons, and .JPG for real "Pictures".



Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Thanks for the post Scott but unfortunately the activeX control I am using doesn't support anything but ICO files. I did fix the problem by creating the 256 format but I wanted to find out if I should be having a problem (i.e. limitation of LOADPICTURE) or if the file format itself is the problem

Toodles,
Steve Dingle
D&S Business Solutions Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top