I am trying to use the ImagetoIPicture method on one of the resource icons I have in a C# project. However, I get a Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) as soon as try to assign the the image to a CommandBarButton. I am using VS2005 /.Net2.0 and referencing stdole2.tlb from the C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib folder.
Thanks,
-S

Setting image on a CommadnBarButton
canelo
Hi,
Thanks for the reply. However, when I try to set the image to the CommandBarButton, I still get the E_UNEXPECTED COM exception. What am I missing
-S
Jan Stranik
See Post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=226973&SiteID=1&mode=1
Thanks
Paul Stubbs
Program Manager