IDispatch definition in C#



Hello,

I am implementing a class in C# that wraps an automation server and am
stuck on something basic. Using the following code fragment:

using System;
using System.Runtime.InteropServices;

namespace ANamespace
{
public class Wrapper
{
private IDispatch* m_Server;

public Wrapper()
{};
}
}

the compiler complains

Wrapper.cs(70): The type or namespace name 'IDispatch' could not be found
(are you missing a using directive or an assembly reference?)

I suspect I am missing something, but I don't know from where to pull the
IDispatch definition in.

Any help is appreciated.

Phil Coveney
.


Loading