Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Referencing string member vars Pin
moredip23-Feb-03 7:40
moredip23-Feb-03 7:40 
GeneralRe: Referencing string member vars Pin
leppie23-Feb-03 7:34
leppie23-Feb-03 7:34 
GeneralRe: Referencing string member vars Pin
moredip23-Feb-03 7:36
moredip23-Feb-03 7:36 
GeneralRe: Referencing string member vars Pin
leppie23-Feb-03 9:32
leppie23-Feb-03 9:32 
GeneralRe: Referencing string member vars Pin
moredip23-Feb-03 11:12
moredip23-Feb-03 11:12 
GeneralRe: Referencing string member vars Pin
leppie23-Feb-03 11:26
leppie23-Feb-03 11:26 
GeneralRe: Referencing string member vars Pin
moredip23-Feb-03 11:32
moredip23-Feb-03 11:32 
GeneralHelp with creating a C# web service Pin
Manster23-Feb-03 4:17
Manster23-Feb-03 4:17 
GeneralRe: Help with creating a C# web service Pin
Kannan Kalyanaraman23-Feb-03 5:39
Kannan Kalyanaraman23-Feb-03 5:39 
GeneralStart Menu Shortcuts in C# Pin
CyberKewl23-Feb-03 3:47
CyberKewl23-Feb-03 3:47 
GeneralRe: Start Menu Shortcuts in C# Pin
Stephane Rodriguez.23-Feb-03 7:10
Stephane Rodriguez.23-Feb-03 7:10 
GeneralRe: Start Menu Shortcuts in C# Pin
CyberKewl23-Feb-03 13:23
CyberKewl23-Feb-03 13:23 
GeneralRe: Start Menu Shortcuts in C# Pin
Stephane Rodriguez.24-Feb-03 11:02
Stephane Rodriguez.24-Feb-03 11:02 
In my code snippet, IShellLink was declared as a dual interface, although, after I have double checked it, it's only a IUnknown interface.
Here is the right declaration and code :

[ComImport, Guid("00021401-0000-0000-C000-000000000046")] 
class SH
{ 
}

[Guid("000214ee-0000-0000-c000-000000000046"),
 InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] 
interface IShellLinkA // Cannot list any base interfaces here 
{ 
  // Note that IUnknown Interface members are NOT listed here:
  void GetPath(string pszFile,
               int cchMaxPath,
               IntPtr pfd,
               int fFlags);

  void GetIDList(IntPtr ppidl);

  void SetIDList(IntPtr pidl);

  void GetDescription(string pszName,
                      int cchMaxName);

  void SetDescription(string pszName);

  void GetWorkingDirectory(string pszDir,
                           int cchMaxPath);

  void SetWorkingDirectory(string pszDir);

  void GetArguments(string pszArgs, int cchMaxPath);

  void SetArguments(string pszArgs);

  IntPtr GetHotkey();

  void SetHotkey(int wHotkey);

  void Resolve(IntPtr hwnd,
               int fFlags);

  void SetPath(string pszFile);
}

//
SH c = new SH();
IShellLinkA i = (IShellLinkA) c;
...
UCOMIPersistFile p = (UCOMIPersistFile) i;
p.Save(@"c:\mylink.lnk",false);

Generalfread and Stream Pin
leppie23-Feb-03 2:24
leppie23-Feb-03 2:24 
GeneralBuildAction: Content Pin
leppie23-Feb-03 0:23
leppie23-Feb-03 0:23 
GeneralReusing CodeGuru Software Pin
Josep L Colom23-Feb-03 0:06
Josep L Colom23-Feb-03 0:06 
GeneralRe: Reusing CodeGuru Software Pin
Stephane Rodriguez.23-Feb-03 0:52
Stephane Rodriguez.23-Feb-03 0:52 
GeneralRe: Reusing CodeGuru Software Pin
Josep L Colom23-Feb-03 4:28
Josep L Colom23-Feb-03 4:28 
GeneralRe: Reusing CodeGuru Software Pin
Stephane Rodriguez.23-Feb-03 5:47
Stephane Rodriguez.23-Feb-03 5:47 
GeneralHIGH MERCURY LEVELS IN DOLPHINS Pin
eggie522-Feb-03 19:31
eggie522-Feb-03 19:31 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
leppie22-Feb-03 21:57
leppie22-Feb-03 21:57 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
eggie523-Feb-03 13:19
eggie523-Feb-03 13:19 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
John Karbin24-Feb-03 2:31
John Karbin24-Feb-03 2:31 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
eggie524-Feb-03 4:08
eggie524-Feb-03 4:08 
GeneralRe: HIGH MERCURY LEVELS IN DOLPHINS Pin
John Karbin24-Feb-03 4:29
John Karbin24-Feb-03 4:29 

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.