Setting image on a CommadnBarButton

Hi,

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



Answer this question

Setting image on a CommadnBarButton