crazydudeinsd

Hi,

Right now I'm trying to figure out how to get the IDockingWindowSite interface to be available to my C# project. I don't know what file contains the type info that I can import from. The VS IDE has the object browser you can search, but it looks like this only searches loaded types that it knows about.

I've ran into this problem before. Please share tips on how to figure this out.

Thanks


Re: Visual C# General Any tips for locating type info file for COM objects?

Figo Fei - MSFT

Hi,

IDockingWindowSite is defined in <Windows SDK>\include\Shlobj.h

IDockingWindowSite : http://msdn2.microsoft.com/en-us/library/ms646448.aspx< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

And you are able to find some other shell interfaces definition in C# on the internet, such as: http://www.jenya.org/msdnmag/issues/04/01/WindowsShell/default.aspx

Thank you






Re: Visual C# General Any tips for locating type info file for COM objects?

crazydudeinsd

Thanks for the reply.

I did look at Shlobj.h, but I was hoping there would be a dll or some other file where I could make it easy to import. I'll try and dig through some MSDN docs and learn more about how to define COM interface imports in C#. Right now I'm not sure how to map the types from the C++ version to C#.




Re: Visual C# General Any tips for locating type info file for COM objects?

Figo Fei - MSFT

Hi,

You can also develop it in C++, then reference the com component in C#.

Here is some useful info: http://www.andymcm.com/csharpfaq.htm

http://msdn.microsoft.com/msdnmag/issues/02/08/CQA/

http://www.codeguru.com/csharp/csharp/cs_misc/com/article.php/c9065/

Thanks