V
Vagabond Software
I have an application that will consume an IconTool class, which makes a
call to the ExtractIcon API function. The documentation for the ExtractIcon
function makes the following remarks:
"You must destroy the icon handle returned by ExtractIcon by calling the
DestroyIcon function."
I know that if I call DestroyIcon within the IconTool class, I get a "cannot
access disposed object" error message. So, is there a way to make sure the
icon handle is disposed or do I have to leave it up to the consumer?
Any advice or suggestions are greatly appreciated.
Carl
call to the ExtractIcon API function. The documentation for the ExtractIcon
function makes the following remarks:
"You must destroy the icon handle returned by ExtractIcon by calling the
DestroyIcon function."
I know that if I call DestroyIcon within the IconTool class, I get a "cannot
access disposed object" error message. So, is there a way to make sure the
icon handle is disposed or do I have to leave it up to the consumer?
Any advice or suggestions are greatly appreciated.
Carl