Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: OOP - Multiple Inheritance Pin
Michael Flanakin17-Mar-04 19:52
Michael Flanakin17-Mar-04 19:52 
Question Determine which users have a file locked? Pin
Member 59390311-Mar-04 6:54
Member 59390311-Mar-04 6:54 
AnswerRe: Determine which users have a file locked? Pin
Heath Stewart12-Mar-04 3:26
protectorHeath Stewart12-Mar-04 3:26 
GeneralRe: Determine which users have a file locked? Pin
Member 59390312-Mar-04 3:34
Member 59390312-Mar-04 3:34 
QuestionRe: Determine which users have a file locked? Pin
Martin#18-Jun-07 0:16
Martin#18-Jun-07 0:16 
Generalthis.ServiceName Pin
CraigSch11-Mar-04 6:42
CraigSch11-Mar-04 6:42 
GeneralRe: this.ServiceName Pin
John Fisher11-Mar-04 16:32
John Fisher11-Mar-04 16:32 
GeneralBindtoObject translation Issues Pin
Tristan Rhodes11-Mar-04 5:39
Tristan Rhodes11-Mar-04 5:39 
I'm strugging to get the BindtoObject method of the IShellInterface working, but it throws errors no matter what I do.

At first i thought it was a design problem, where i was using the wrong PIDL. But i pulled the display name from it, and parsed that for a pointer, and it still isn't working, so i'm somewhat baffled.

here is the method as i've written it:

[PreserveSig]<br />
int BindToObject( <br />
    /* [in] */ IntPtr pidl,<br />
    /* [in] */ IntPtr pbc,<br />
    /* [in] */ Guid riid,<br />
    /* [iid_is][out] */ out IntPtr ppv);


When i call the method, i call it as follows:

//Bind object to Desktop, <br />
DesktFolderInterface.BindToObject(FolderPIDL, IntPtr.Zero, IShellGUID, out pFolderInteraface);


where the Desktop folder is the object i'm calling the bind from. The FolderPIDL i have tried as both the return from the SHBrowseForFolder dialog, and then by parsing the name of the folder retrieved from the dialog. Neither of which succeeded.

The GUID is the GUID value for IShellFolder, retrieved by this line:

//Get GUID for Shelltype<br />
Guid IShellGUID = Marshal.GenerateGuidForType(shellType);


For the pbc value, i've used both IntPtr.zero, and a variable defined as IntPtr.zero.

I'm not sure why this won't work, but i thought it was a layout mistake at first, now i'm not so sure.

Can anyone help?

Cheers

Cata

[Edit]: I've used all these components in a different COM method, and they worked fine, so i know that the components are all valid. Which is why it is confusing that it does not work.
General- Solved. - ref GUID? Pin
Tristan Rhodes12-Mar-04 1:02
Tristan Rhodes12-Mar-04 1:02 
GeneralRe: - Solved. - ref GUID? Pin
Mike Dimmick12-Mar-04 2:25
Mike Dimmick12-Mar-04 2:25 
GeneralRe: - Solved. - ref GUID? Pin
Tristan Rhodes12-Mar-04 3:20
Tristan Rhodes12-Mar-04 3:20 
Generalfill a textbox from a dataset Pin
krisman11-Mar-04 4:43
krisman11-Mar-04 4:43 
GeneralRe: fill a textbox from a dataset Pin
Guinness4Strength11-Mar-04 4:47
Guinness4Strength11-Mar-04 4:47 
GeneralRe: fill a textbox from a dataset Pin
krisman11-Mar-04 5:28
krisman11-Mar-04 5:28 
GeneralRe: fill a textbox from a dataset Pin
partyganger11-Mar-04 5:56
partyganger11-Mar-04 5:56 
GeneralRe: fill a textbox from a dataset Pin
Edbert P11-Mar-04 16:22
Edbert P11-Mar-04 16:22 
GeneralRe: fill a textbox from a dataset Pin
krisman15-Mar-04 2:56
krisman15-Mar-04 2:56 
GeneralRe: fill a textbox from a dataset Pin
Edbert P15-Mar-04 11:11
Edbert P15-Mar-04 11:11 
GeneralRe: fill a textbox from a dataset Pin
krisman16-Mar-04 2:51
krisman16-Mar-04 2:51 
GeneralWindows XP and Shell Pin
Guinness4Strength11-Mar-04 4:11
Guinness4Strength11-Mar-04 4:11 
GeneralRe: Windows XP and Shell Pin
Mike Dimmick12-Mar-04 2:28
Mike Dimmick12-Mar-04 2:28 
Generalprinting Pin
cmarmr11-Mar-04 4:01
cmarmr11-Mar-04 4:01 
GeneralRe: printing Pin
Not Active11-Mar-04 4:30
mentorNot Active11-Mar-04 4:30 
QuestionLock a file? Pin
Anonymous11-Mar-04 3:29
Anonymous11-Mar-04 3:29 
AnswerRe: Lock a file? Pin
Heath Stewart11-Mar-04 5:25
protectorHeath Stewart11-Mar-04 5:25 

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.