Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 15 Feb 2006 11:11:29 -0800,    group: microsoft.public.inetsdk.programming.urlmonikers        back       


Question about OleLoadPicturePath() and the resource protocol   
Hi,

I am developing an Excel add-in in VC++ and want to add a picture on a 
commandbar button. I am using OleLoadPicturePath() to load a bitmap and get 
an IPictureDisp interface which I set to the picture property of the button. 
This works ok while I access the bitmap as an external file; but now I want 
to include my bitmap as a HTML resource in the addin-in DLL and access it 
using the resource protocol like:

OleLoadPicturePath(L"res://<Path>\Addin.dll/mypicture.bmp", ...);

This call fails with an HRESULT which basically says the resource could not 
be loaded.

There is nothing wrong with the DLL since the URL used above loads the 
bitmap in internet explorer without problems.

Can someone help me out on this one please.
Many thanks,

-- 
s.jay_k
date: Wed, 15 Feb 2006 11:11:29 -0800   author:   s.jay_k

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us