Click here to Skip to main content
15,915,513 members
Home / Discussions / COM
   

COM

 
GeneralInterface?! Pin
Adam20-Oct-00 21:21
Adam20-Oct-00 21:21 
GeneralProblem registering OCX Pin
roger C19-Oct-00 11:52
roger C19-Oct-00 11:52 
QuestionDCOM...? Problem......? Pin
Bashir Irfan Malik19-Oct-00 4:14
Bashir Irfan Malik19-Oct-00 4:14 
GeneralInterfaces Pin
Gerry19-Oct-00 0:55
Gerry19-Oct-00 0:55 
GeneralRe: Interfaces Pin
Ezz Khayyat19-Oct-00 4:21
professionalEzz Khayyat19-Oct-00 4:21 
GeneralRe: Interfaces Pin
gbgf19-Oct-00 4:22
gbgf19-Oct-00 4:22 
GeneralGetting addresses from MAPI address book Pin
Fredrik Sigbjörn10-Oct-00 20:40
Fredrik Sigbjörn10-Oct-00 20:40 
QuestionHow to... (some namespace related questions) Pin
AkelA9-Oct-00 5:53
AkelA9-Oct-00 5:53 
Well I wanted to send 2 pictures, but I don't know how can I attach them. It won't be so easy to describe myself, but I'll try...

I implemented a NameSpace handling code in VC++6.0, without MFC. It works, but it has some problems.

1. I can show the folder's icons. These are OK, and looks like as "original" windows icons. But I use an ExtractIcon application. This app. changes many of system icons. (desktop,my computer, normal directories, shared directories, etc.) How can I ask/get/handle these icons (too)?
2. I can enumerate subfolders. But when I show them the order of subfolders are not the same as in Explorer. How can I sort them?
3. here's a part of my code: (instead of two pics)
How can I solve the #1 and #2 questions?

// lpsf: interface pointer
// lpi: absolute pid (merged myself)
// hIconSmall: the icon what I want to get
bool ANameSpace::GetDisplayIconOf(IShellFolder *lpsf, LPITEMIDLIST lpi, HICON* hIconSmall)
{
bool _back = true;
HRESULT hres;
IExtractIcon *pxi;

// get IID_IExtractIcon interface
hres = lpsf->GetUIObjectOf(NULL, 1, (LPCITEMIDLIST*)&lpi, IID_IExtractIcon, NULL, (LPVOID *)&pxi);
if (SUCCEEDED(hres))
{
char szIconFile[MAX_PATH];
int iIndex;
UINT wFlags = 0;

hres = pxi->GetIconLocation(GIL_FORSHELL, szIconFile, sizeof(szIconFile), &iIndex, &wFlags);
if (SUCCEEDED(hres))
{
// I need only the small icon
HICON hiconLarge = NULL;
int cxIcon = GetSystemMetrics(SM_CXICON);
int cxSmIcon = GetSystemMetrics(SM_CXSMICON);
// try getting it from the Extract member fuction
hres = pxi->Extract(szIconFile, iIndex, &hiconLarge, hIconSmall,
MAKELONG(cxIcon, cxSmIcon));
}else
_back = false;

pxi->Release();
pMalloc->Free(pxi);
} else
_back = false;

return _back;
}

Thanks in advance,
---
AkelA
Generalmulti-use COM object Pin
Tom3-Oct-00 22:43
Tom3-Oct-00 22:43 
GeneralNEED HELP ABOUT TO BUILD A SHELL COMPONANT FOR WIN95/98 USING COM Pin
atul3-Oct-00 4:30
atul3-Oct-00 4:30 
GeneralRe: NEED HELP ABOUT TO BUILD A SHELL COMPONANT FOR WIN95/98 USING COM Pin
nuggetboy3-Oct-00 5:52
nuggetboy3-Oct-00 5:52 
Generalwtl with tooltips Pin
khoon3-Oct-00 0:34
khoon3-Oct-00 0:34 
GeneralActive doc container/server communication Pin
TMME2-Oct-00 8:34
sussTMME2-Oct-00 8:34 
GeneralRegistration of com components Pin
Gunnar2-Oct-00 1:15
Gunnar2-Oct-00 1:15 
GeneralModem functions in C++ Pin
Doron Yaacoby28-Sep-00 10:10
Doron Yaacoby28-Sep-00 10:10 
GeneralRe: Modem functions in C++ Pin
Alex Gorev28-Sep-00 11:27
Alex Gorev28-Sep-00 11:27 
GeneralRe: Modem functions in C++ Pin
Roger Scudder30-Sep-00 12:40
Roger Scudder30-Sep-00 12:40 
GeneralAccessing a non-registered VB ActiveX DLL Pin
Nemanja Trifunovic26-Sep-00 9:02
Nemanja Trifunovic26-Sep-00 9:02 
GeneralRe: Accessing a non-registered VB ActiveX DLL Pin
Alex Gorev27-Sep-00 9:02
Alex Gorev27-Sep-00 9:02 
GeneralDCOM over internet config problem Pin
Keith Gemeinhart25-Sep-00 8:23
sussKeith Gemeinhart25-Sep-00 8:23 
GeneralRe: DCOM over internet config problem Pin
23-Feb-01 0:54
suss23-Feb-01 0:54 
QuestionMMC programming ? Pin
Igor25-Sep-00 3:53
Igor25-Sep-00 3:53 
AnswerYes! Pin
8-Jan-01 0:39
suss8-Jan-01 0:39 
GeneralActiveX control with control container capabilities Pin
Fabian23-Sep-00 12:55
Fabian23-Sep-00 12:55 
GeneralCOM Method Interception... Pin
XUnleashed22-Sep-00 4:50
XUnleashed22-Sep-00 4:50 

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.