Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: abs() function is wierd Pin
Cedric Moonen22-Sep-05 2:52
Cedric Moonen22-Sep-05 2:52 
GeneralRe: abs() function is wierd Pin
Adrian Metcalfe22-Sep-05 3:04
Adrian Metcalfe22-Sep-05 3:04 
AnswerRe: abs() function is wierd Pin
Adrian Metcalfe22-Sep-05 3:12
Adrian Metcalfe22-Sep-05 3:12 
AnswerRe: abs() function is wierd Pin
toxcct22-Sep-05 3:31
toxcct22-Sep-05 3:31 
QuestionDynamic Disk Pin
sanjaylk22-Sep-05 2:11
sanjaylk22-Sep-05 2:11 
AnswerRe: Dynamic Disk Pin
Nilesh K.22-Sep-05 2:29
Nilesh K.22-Sep-05 2:29 
GeneralRe: Dynamic Disk Pin
sanjaylk23-Sep-05 2:14
sanjaylk23-Sep-05 2:14 
QuestionDetermine if one PIDL is above or below another Pin
Skute22-Sep-05 2:04
Skute22-Sep-05 2:04 
Hi, how can i determine if a PIDL is above or below another one?
What im trying todo is stop a user browsing up higher than a certain directory in my application.

The code i have been trying to use is:

CComPtr<ishellfolder> pDesktop;
if (SUCCEEDED(::SHGetDesktopFolder(&pDesktop)))
bReturn = static_cast<short>(HRESULT_CODE(pDesktop->CompareIDs(SHCIDS_CANONICALONLY, m_DirectoryIdList, pidlBrowse))) <= 0;

Which works fine when browsing deeper into folders, but doesnt work when pressing the up button.


How can i determine if the pidl of

C:\test\

comes before the pidl of

C:\test\cant_browse_below_here


I thought about converting the PIDLs to BYTE arrays and then comparing each byte. Is this a suitable way of continuing?


Skute
AnswerRe: Determine if one PIDL is above or below another Pin
David Crow22-Sep-05 2:45
David Crow22-Sep-05 2:45 
GeneralRe: Determine if one PIDL is above or below another Pin
Skute22-Sep-05 3:21
Skute22-Sep-05 3:21 
QuestionMOUNT POINTS!! Pin
URagavSouth22-Sep-05 1:56
URagavSouth22-Sep-05 1:56 
AnswerRe: MOUNT POINTS!! Pin
Nilesh K.22-Sep-05 2:35
Nilesh K.22-Sep-05 2:35 
GeneralRe: MOUNT POINTS!! Pin
URagavSouth22-Sep-05 2:39
URagavSouth22-Sep-05 2:39 
GeneralRe: MOUNT POINTS!! Pin
Nilesh K.22-Sep-05 2:43
Nilesh K.22-Sep-05 2:43 
Questionconflict in windows focus - float menu involved Pin
Laffis22-Sep-05 1:39
Laffis22-Sep-05 1:39 
AnswerRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 1:59
Steen Krogsgaard22-Sep-05 1:59 
GeneralRe: conflict in windows focus - float menu involved Pin
Laffis22-Sep-05 2:23
Laffis22-Sep-05 2:23 
GeneralRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 2:39
Steen Krogsgaard22-Sep-05 2:39 
GeneralRe: conflict in windows focus - float menu involved Pin
Steen Krogsgaard22-Sep-05 2:43
Steen Krogsgaard22-Sep-05 2:43 
AnswerRe: conflict in windows focus - float menu involved Pin
Nilesh K.22-Sep-05 2:23
Nilesh K.22-Sep-05 2:23 
GeneralRe: conflict in windows focus - float menu involved Pin
Laffis22-Sep-05 2:47
Laffis22-Sep-05 2:47 
Questionhow to convert int to char* Pin
prabhakar2622-Sep-05 1:10
prabhakar2622-Sep-05 1:10 
AnswerRe: how to convert int to char* Pin
Laffis22-Sep-05 1:24
Laffis22-Sep-05 1:24 
AnswerRe: how to convert int to char* Pin
Steen Krogsgaard22-Sep-05 1:44
Steen Krogsgaard22-Sep-05 1:44 
AnswerRe: how to convert int to char* Pin
Omar.Pessoa22-Sep-05 2:10
Omar.Pessoa22-Sep-05 2:10 

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.