I'm trying to figure out how to call a COM DLL from my C# application.
I have referenced the DLL in my C# project but now I don't know how to call it.
After adding the reference, I got a reference to BaseType.
First I tried something similar to what I could do in VB 6 but this fails as in Case 1.
Intellisense gives me the BaseType.theCOMDLL.
I then tried to create a class that inherits the abstract class theCOMDLL.
The intellisense in VS recognizes what's inside as it creates all the methods for me but these are of course not implemented.
What do I need to do to be able to call the methods in theCOMDLL?
// Case 1
// This gives an error:
// Cannot create an instance of the abstract class or interface 'BaseType.theCOMDLL'
BaseType.theCOMDLL myCOM = new BaseType.theCOMDLL();
// A new class that inherits the abstract class works fine and all
// methods are expanded but not implemented of course.
public class isis : isisbase
// A whole lot of methods defined here like:
public void DoSomeStuff()
throw new NotImplementedException();