Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Microsoft.Win32 namespace

I am getting this error in one of my programs

F:\WINNT\ComPlus\v2000.14.1812\system.winforms.dll: error CS0011: Referenced
class 'System.WinForms.RichControl' has unknown base class or interface 'Microsoft.Win32.Interop.IOleControl'

I know i have to include some library with the /reference option. But when
i checked the 'Microsoft.Win32' namespace, it has only 2 classes - "Registry"
and "RegistryKey". Can someone please let me know what libraray has to be
included with the /reference option. Or give me some links where i can find
some documentation about the 'Microsoft.Win32' namespace.
[671 byte] By [Sachin23] at [2007-11-9 18:22:11]
# 1 Re: Microsoft.Win32 namespace
You need to reference Microsoft.Win32.Interop.DLL.

"Sachin23" <sachindemicha@yahoo.com> wrote in message
news:39c69dd7$1@news.dev-archive.com...
>
> I am getting this error in one of my programs
>
> F:\WINNT\ComPlus\v2000.14.1812\system.winforms.dll: error CS0011:
Referenced
> class 'System.WinForms.RichControl' has unknown base class or interface
'Microsoft.Win32.Interop.IOleControl'
>
> I know i have to include some library with the /reference option. But when
> i checked the 'Microsoft.Win32' namespace, it has only 2 classes -
"Registry"
> and "RegistryKey". Can someone please let me know what libraray has to be
> included with the /reference option. Or give me some links where i can
find
> some documentation about the 'Microsoft.Win32' namespace.
Jeff Peil at 2007-11-11 22:28:20 >
# 2 Re: Microsoft.Win32 namespace
Thanks

"Jeff Peil" <jpeil@bigfoot.com> wrote:
>You need to reference Microsoft.Win32.Interop.DLL.
>
>"Sachin23" <sachindemicha@yahoo.com> wrote in message
>news:39c69dd7$1@news.dev-archive.com...
>>
>> I am getting this error in one of my programs
>>
>> F:\WINNT\ComPlus\v2000.14.1812\system.winforms.dll: error CS0011:
>Referenced
>> class 'System.WinForms.RichControl' has unknown base class or interface
>'Microsoft.Win32.Interop.IOleControl'
>>
>> I know i have to include some library with the /reference option. But
when
>> i checked the 'Microsoft.Win32' namespace, it has only 2 classes -
>"Registry"
>> and "RegistryKey". Can someone please let me know what libraray has to
be
>> included with the /reference option. Or give me some links where i can
>find
>> some documentation about the 'Microsoft.Win32' namespace.
>
>
Sachin23 at 2007-11-11 22:29:19 >