Hi all,
I'm trying to use a C# DLL in VC++ 6 using COM. I've made a simple class (listed below), and used tlbexp and regasm to generate a type library and register the component and now I'm trying to work out how to access it in VC++.
public interface Itest {
int testAdd(int a);
}
[ClassInterface(ClassInterfaceType.None)]
public class MyClass : Itest {
public MyClass() {
}
public int testAdd(int a) {
return (1 + a);
}
}
Any pointers would be appreciated, I'm a bit stumped!