Using C# DLL in VC++ 6 application via Com

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! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top