LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract icon from exe files

I want to get the icon from an exe file and display it in a picture box in CVI. Is this possible? I know it can be done in Visual Basic.
0 Kudos
Message 1 of 2
(2,970 Views)
There isn't a native CVI function for this. You can do it with Microsoft's Software Development Kit (SDK) functions which are included with the full development system of CVI. The function in the SDK that does this is LoadImage. Once loaded, save it as a ICO file with SDK function UpdateResource, then you can load it in a picture box with DisplayImageFile. Consult the SDK help for more info about the SDK functions mentioned.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(2,970 Views)