Print Page | Close Window

COM Automation Error when using AddIcon/AddBitmap

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=19835
Printed Date: 26 November 2024 at 11:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: COM Automation Error when using AddIcon/AddBitmap
Posted By: GernotH
Subject: COM Automation Error when using AddIcon/AddBitmap
Date Posted: 04 June 2012 at 4:39am
We are using custom icons for events in our application.

When we use the IconManager with LoadIcon everything works fine but for that we would have to deploy the icon files aswell (which we would prefer not to).

When we use AddIcon the applikation crashes sometimes with the error:
"COM Automation has signalled a Numeric Overflow error".
But the icon handle used for the function is correct and working.
Same problem when we try to use AddBitmap.

Did anyone else encounter this problem and/or has a solution for it?
Is there a sample available for using LoadIconFromResource?

Gernot



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net