Programming velleman K8000 in c#

hello to everybody,

i have to programm a k8000 kit for control a toilet. using inputs and operate to other relay outputs (to set the lights, flush from a pump, and so on).

is there any chance to get a “.dll” for the k8000 to use in c#?

can anybody help me with a example of programming code?

Did somebody have experience with using the k8000 in c#?

thanks a lot!
uwe

Here a link you can find an example project in C# for the K8055 card.
doconnel.force9.co.uk/csharp/k8055/
The problem is that this example is for the K8055 card. I think you can anyhow use it as an example how to use the DLL in C#.
Here a snippet from the code how to declare the DLL functions in C#

[code] public sealed class api // DLL Wrapper
{
#region API Declares

        [DllImport("k8055d.dll")]
        public static extern int OpenDevice(int devNumber);

        [DllImport("k8055d.dll")]
        public static extern void CloseDevice();

        [DllImport("k8055d.dll")]
        public static extern int ReadAnalogChannel(int Channel);[/code]etc...

Here example how to use the DLL functions

[code] private int devOpen(int devNumber)
{
return api.OpenDevice(devNumber);
}

    private void devClose()
    {
        api.CloseDevice();
    }  

    private void UpdateInputs()
    {
        stateDI = api.ReadAllDigital();
        c1 = api.ReadCounter(1);
        c2 = api.ReadCounter(2);
        api.ReadAllAnalog(ref ai1, ref ai2);
    }[/code]