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

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top