Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Broadcasting on a local network Pin
ZigmaT8-Feb-04 12:22
ZigmaT8-Feb-04 12:22 
GeneralRe: Broadcasting on a local network Pin
Heath Stewart8-Feb-04 18:33
protectorHeath Stewart8-Feb-04 18:33 
GeneralCompiling Dependancies Pin
ZigmaT8-Feb-04 9:47
ZigmaT8-Feb-04 9:47 
GeneralRe: Compiling Dependancies Pin
Mazdak8-Feb-04 9:56
Mazdak8-Feb-04 9:56 
GeneralRe: Compiling Dependancies Pin
ZigmaT8-Feb-04 10:37
ZigmaT8-Feb-04 10:37 
GeneralRe: Compiling Dependancies Pin
Heath Stewart8-Feb-04 18:22
protectorHeath Stewart8-Feb-04 18:22 
GeneralRe: Compiling Dependancies Pin
ZigmaT9-Feb-04 8:30
ZigmaT9-Feb-04 8:30 
GeneralGetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 9:14
Tristan Rhodes8-Feb-04 9:14 
I'm running the following code, and have run into yet another misshap.

shellFolder is a valid COM object constructed by the ParentInterfacePointer from SHBindToParent. I know it's valid as it returns pointers via other functions, however, this function returns nothing.

The relativePIDL is the value returned from SHBindToParent.

Every time I run this method, mySTRRET is still null (well, IntPtr.zero).

<br />
			mySTRRET = new IntPtr();<br />
			result = shellFolder.GetDisplayNameOf(relativePIDL,SHGDN_Flags.SHGDN_NORMAL,out mySTRRET);<br />


The method is defined almost identicaly as the one in the tutorial (http://www.codeproject.com/csharp/csdoesshell1.asp), but I'm looking for a ptr to mySTRRET (I don't want the object, i want to forward it to another function):

<br />
		int GetDisplayNameOf( <br />
			/* [in] */ IntPtr pidl,<br />
			/* [in] */ SHGDN_Flags uFlags,<br />
			/* [out] */ out IntPtr pName);<br />


This is bothering me because as far as I can see it is set up properly, and it also runs without exception.

Any ideas?

Cata
GeneralRe: GetDisplayName - Valid, but no return value Pin
Nick Parker8-Feb-04 10:28
protectorNick Parker8-Feb-04 10:28 
GeneralRe: GetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 12:46
Tristan Rhodes8-Feb-04 12:46 
GeneralSending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:03
Jon Newman8-Feb-04 9:03 
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:09
Mazdak8-Feb-04 9:09 
GeneralRe: Sending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:32
Jon Newman8-Feb-04 9:32 
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:40
Mazdak8-Feb-04 9:40 
GeneralRe: Sending an Image over HTTP. Pin
Not Active9-Feb-04 3:12
mentorNot Active9-Feb-04 3:12 
GeneralAutoscrolling Text Boxes Pin
ZigmaT8-Feb-04 9:00
ZigmaT8-Feb-04 9:00 
QuestionGrid Control - How do I add single rows?? Pin
IrishSonic8-Feb-04 8:49
IrishSonic8-Feb-04 8:49 
AnswerRe: Grid Control - How do I add single rows?? Pin
Mazdak8-Feb-04 9:01
Mazdak8-Feb-04 9:01 
GeneralTroubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 7:55
Mike0108-Feb-04 7:55 
GeneralRe: Troubles with Owner-draw TextBox... Pin
leppie8-Feb-04 8:28
leppie8-Feb-04 8:28 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 9:29
Mike0108-Feb-04 9:29 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Heath Stewart8-Feb-04 18:13
protectorHeath Stewart8-Feb-04 18:13 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0109-Feb-04 4:43
Mike0109-Feb-04 4:43 
GeneralAdapt forms to screen resolution Pin
haezeban8-Feb-04 7:55
haezeban8-Feb-04 7:55 
GeneralRe: Adapt forms to screen resolution Pin
Mazdak8-Feb-04 8:24
Mazdak8-Feb-04 8:24 

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.