>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)
Sure. Just make sure those COM objects are available on the Windows
version you target.
>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.
http://www.dotnetinterop.com/faq/?q=StrongNameIA
>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)??
Probably, but it may take more work. You'll have to decide which way
you want to go depending on what you're trying to accomplish.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.