Click here to Skip to main content
15,887,328 members
Home / Discussions / C#
   

C#

 
Generalfull screen maximize Pin
Blue_Aqua5-Feb-04 2:58
Blue_Aqua5-Feb-04 2:58 
GeneralRe: full screen maximize Pin
occcy5-Feb-04 4:41
occcy5-Feb-04 4:41 
GeneralRe: full screen maximize Pin
Blue_Aqua5-Feb-04 17:27
Blue_Aqua5-Feb-04 17:27 
GeneralPointers to Interfaces for COM Pin
Tristan Rhodes5-Feb-04 2:24
Tristan Rhodes5-Feb-04 2:24 
GeneralProblem 2 Pin
Tristan Rhodes5-Feb-04 2:32
Tristan Rhodes5-Feb-04 2:32 
GeneralRe: Problem 2 Pin
Heath Stewart5-Feb-04 5:14
protectorHeath Stewart5-Feb-04 5:14 
GeneralRe: Problem 2 Pin
Tristan Rhodes5-Feb-04 5:33
Tristan Rhodes5-Feb-04 5:33 
GeneralRe: Problem 2 Pin
Heath Stewart5-Feb-04 6:53
protectorHeath Stewart5-Feb-04 6:53 
Instead of
object Folder = Marshal.GetTypedObjectForIUnknown(thing, COMStuff.IShellFolder);
use
COMStuff.IShellFolder folder = (COMStuff.ISHellFolder)
  Marshal.GetTypedObjectForIUnknown(thing, typeof(COMStuff.IShellFolder));
Also, instead of using out IntPtr as the param type to SHGetDesktopFolder that you seemed to have defined yourself, just use IShellFolder as the param (no out or ref) and it should work just fine. Marshaling done by the CLR will take care of most of this.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Problem 2 Pin
Tristan Rhodes5-Feb-04 7:13
Tristan Rhodes5-Feb-04 7:13 
GeneralInt / UInt in flag issue Pin
Tristan Rhodes5-Feb-04 1:54
Tristan Rhodes5-Feb-04 1:54 
GeneralRe: Int / UInt in flag issue Pin
Colin Angus Mackay5-Feb-04 1:56
Colin Angus Mackay5-Feb-04 1:56 
GeneralRe: Int / UInt in flag issue Pin
Tristan Rhodes5-Feb-04 2:20
Tristan Rhodes5-Feb-04 2:20 
GeneralRe: Int / UInt in flag issue Pin
Heath Stewart5-Feb-04 5:05
protectorHeath Stewart5-Feb-04 5:05 
GeneralProblem with class inheritance Pin
Andres Coder5-Feb-04 1:34
Andres Coder5-Feb-04 1:34 
GeneralRe: Problem with class inheritance Pin
Corinna John5-Feb-04 1:50
Corinna John5-Feb-04 1:50 
GeneralRe: Problem with class inheritance Pin
Colin Angus Mackay5-Feb-04 1:55
Colin Angus Mackay5-Feb-04 1:55 
GeneralCOM interop reference problem Pin
vladll4-Feb-04 23:33
vladll4-Feb-04 23:33 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 4:52
protectorHeath Stewart5-Feb-04 4:52 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 5:38
vladll5-Feb-04 5:38 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 6:58
protectorHeath Stewart5-Feb-04 6:58 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 7:06
vladll5-Feb-04 7:06 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 8:58
protectorHeath Stewart5-Feb-04 8:58 
GeneralSelecting buttons Pin
Megastoffel4-Feb-04 23:30
Megastoffel4-Feb-04 23:30 
GeneralRe: Selecting buttons Pin
Member 2611885-Feb-04 0:11
Member 2611885-Feb-04 0:11 
GeneralRe: Selecting buttons Pin
Megastoffel5-Feb-04 7:38
Megastoffel5-Feb-04 7: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.