interop question - shell

From: Craig (Craig_at_discussions.microsoft.com)
Date: 01/07/05


Date: Thu, 6 Jan 2005 16:47:01 -0800

Is it alright to add a reference to shell32.dll and then use the objects in
that namespace, like: Shell32.FolderItem ? (and then distribute the app to
various windows operating systems)

The reason I ask, I created an app that does this, and when I transfer the
code to a project with stricter compile options, it errors and says the
shell32.dll doesn't have a strong name. Should I rewrite all the code to
use pinvoke interop instead of the namespace? And...if so, can you do
everything through interop that you could through the namespace (like
Shell32.FolderItem)??

Any and all suggestions are welcome. This has set me back considerably.



Relevant Pages

  • Re: User Class
    ... The User object is kept in your ASP.NET application. ... > this reference in other classes that I create. ... They also have a namespace that is different than the ... > rest of my app. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: default namespace / Xmlvalidatingreader
    ... here i made a small app: console application, just copy all in a class ... namespace ConsoleAppXSDTestApp ... only 4 characthers allowed by xsd ...
    (microsoft.public.dotnet.xml)
  • Re: Microsoft.VisualBasic.Compatibility
    ... | I'm using an API that references this namespace. ... | Google is "Don't use it!" ... Having it side by side with your app will help insure ...
    (microsoft.public.dotnet.languages.vb)
  • User Class
    ... I'm new here so please forgive me if this is a stupid question. ... this reference in other classes that I create. ... For example my app may be a namespace of "mycompany.myapp" ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: assembly name Microsoft.WindowsMobile.Utilities ....was not found
    ... The classes in the Microsoft.WindowsMobile namespace are only available on ... I am trying to create a Windows Mobile 5 Pocket PC Smartphone application ... get the following exception: ... reference this class, the app runs fine. ...
    (microsoft.public.pocketpc.developer)