G
Guest
Hello everybody!
I am currently developing a sidebar-application and getting stucked in the
problem of extracting the default application icon of .exe and .dll files.
Has anybody out there a solution in VB . Net?
I tried a solution using LoadLibraryEx, LoadResource, FindResource,
ExtractIcon etc. but only run into StackOverflow errors. Hence I guess that
the HICON-structure of the native window system and the .NET Icon-class
differ in some (or more probable: many) ways. For example ExtractIcon(...)
returns a handle on an icon. Trying to use this handle by
Icon.FromHandle(handle) results in a StackOverflow error.
Regards,
Joachim
I am currently developing a sidebar-application and getting stucked in the
problem of extracting the default application icon of .exe and .dll files.
Has anybody out there a solution in VB . Net?
I tried a solution using LoadLibraryEx, LoadResource, FindResource,
ExtractIcon etc. but only run into StackOverflow errors. Hence I guess that
the HICON-structure of the native window system and the .NET Icon-class
differ in some (or more probable: many) ways. For example ExtractIcon(...)
returns a handle on an icon. Trying to use this handle by
Icon.FromHandle(handle) results in a StackOverflow error.
Regards,
Joachim