L
llihp
Hi all,
I'm trying to use a C# DLL in VC++ 6. From reading a few articles I have
read that it is possible by using COM. I have created a simple class in
C# and created a type library using tlbexp.exe and imported it in my C++
source code, but I can't work out how to use the objects from my class.
My C# class is simple:
public interface ISimpleClass {
int test(int a);
}
public class SimpleClass : ISimpleClass {
public SimpleClass() {
}
public int test(int a) {
return a;
}
}
Any hints/help would be highly appreciated. I'm going mad here!
I'm trying to use a C# DLL in VC++ 6. From reading a few articles I have
read that it is possible by using COM. I have created a simple class in
C# and created a type library using tlbexp.exe and imported it in my C++
source code, but I can't work out how to use the objects from my class.
My C# class is simple:
public interface ISimpleClass {
int test(int a);
}
public class SimpleClass : ISimpleClass {
public SimpleClass() {
}
public int test(int a) {
return a;
}
}
Any hints/help would be highly appreciated. I'm going mad here!