Click here to Skip to main content
16,004,836 members
Home / Discussions / COM
   

COM

 
Questionwhat interface to extend the grey Info box in WinXP Explorer? Pin
seriema20-Sep-04 23:44
seriema20-Sep-04 23:44 
AnswerRe: what interface to extend the grey Info box in WinXP Explorer? Pin
seriema21-Sep-04 12:41
seriema21-Sep-04 12:41 
GeneralActiveX control Initialization Pin
AssemblySoft20-Sep-04 9:10
AssemblySoft20-Sep-04 9:10 
GeneralRe: ActiveX control Initialization Pin
El'Cachubrey20-Sep-04 20:53
El'Cachubrey20-Sep-04 20:53 
GeneralRe: ActiveX control Initialization Pin
AssemblySoft20-Sep-04 23:58
AssemblySoft20-Sep-04 23:58 
GeneralRe: ActiveX control Initialization Pin
Saivert21-Sep-04 20:37
Saivert21-Sep-04 20:37 
GeneralRe: ActiveX control Initialization Pin
Saivert21-Sep-04 20:38
Saivert21-Sep-04 20:38 
GeneralOleLoadPicture failed please help Pin
El'Cachubrey20-Sep-04 4:19
El'Cachubrey20-Sep-04 4:19 
Hi all.
This snip of code from my appl.

Thats here not right.

///Try to Create IPicure interface for particular icon

IPicture* CConnect::CreateIPictureFromIcon(WORD hIco)const
{

HRSRC res = FindResource(_AtlModule.GetResourceInstance(),MAKEINTRESOURCE(hIco),RT_GROUP_ICON);

HGLOBAL hGlobalRes = LoadResource(_AtlModule.GetResourceInstance(), res);

LPVOID pvResData = LockResource(hGlobalRes);

size_t len = SizeofResource(_AtlModule.GetResourceInstance(),(HRSRC) res);

HGLOBAL hGlobal = GlobalAlloc(GMEM_MOVEABLE,len);

LPVOID pvData = GlobalLock( hGlobal );

memcpy(pvData,pvResData,len);

GlobalUnlock(hGlobal);

GlobalUnlock(hGlobalRes);

LPSTREAM pStream = NULL;

IPersistStream* IPersStream = NULL;

HRESULT hr =
CreateStreamOnHGlobal( hGlobal,TRUE,&pStream );

//hr == S_OK

IPicture* pPicture = NULL;

//////////!!!!!!!!!!!!!!!!!!!!!//////
//All fine till this place
//hr return E_UNEXPECTED
////////////////////////////////////
hr = OleLoadPicture(pStream,0,TRUE,IID_IPicture,(void**)&pPicture);

pStream->Release();

return pPicture;
}

Please help!!!

GeneralFunction parameter Pin
Sly66699918-Sep-04 6:35
Sly66699918-Sep-04 6:35 
GeneralRe: Function parameter Pin
darkbyte20-Sep-04 6:31
darkbyte20-Sep-04 6:31 
GeneralDownload Progress Callback (activeX) Pin
AssemblySoft17-Sep-04 3:46
AssemblySoft17-Sep-04 3:46 
GeneralATL Control SafeForScripting / Initialisation Pin
AssemblySoft16-Sep-04 23:01
AssemblySoft16-Sep-04 23:01 
GeneralRe: ATL Control SafeForScripting / Initialisation Pin
AssemblySoft17-Sep-04 3:43
AssemblySoft17-Sep-04 3:43 
GeneralMake a call to my ActiveX from my webpage. Pin
anderslundsgard16-Sep-04 21:06
anderslundsgard16-Sep-04 21:06 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
darkbyte17-Sep-04 15:42
darkbyte17-Sep-04 15:42 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
anderslundsgard20-Sep-04 3:24
anderslundsgard20-Sep-04 3:24 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
darkbyte20-Sep-04 6:26
darkbyte20-Sep-04 6:26 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
anderslundsgard20-Sep-04 21:47
anderslundsgard20-Sep-04 21:47 
GeneralRe: Make a call to my ActiveX from my webpage. Pin
darkbyte21-Sep-04 7:31
darkbyte21-Sep-04 7:31 
GeneralError in compling ??? urgent Pin
zahid_ash16-Sep-04 19:37
zahid_ash16-Sep-04 19:37 
GeneralRe: Error in compling ??? urgent Pin
User 21559716-Sep-04 21:46
User 21559716-Sep-04 21:46 
GeneralCOM+ Transaction Problem Pin
ProffK16-Sep-04 4:21
ProffK16-Sep-04 4:21 
GeneralPlease ! Pin
andy_cn14-Sep-04 22:12
andy_cn14-Sep-04 22:12 
Generalhelp! ! Pin
andy_cn14-Sep-04 22:05
andy_cn14-Sep-04 22:05 
GeneralRe: help! ! Pin
Balkrishna Talele16-Sep-04 18:38
Balkrishna Talele16-Sep-04 18:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.