Hi all,
I'm getting some problems importing a DLL that I made in C# within VB6.0.
The C# is quite easy, just for trying:
namespace TestDll
{
public class Class1
{
public int SumNumbers(int numn1, int num2)
{
int sum = num1 + num2;
return sum;
}
}
}
I developd the C# project as a Project Library, so the DLL is correctrly
created.
I don't have any problem if I use the DLL within a C# project.
Whereas, if I use the DLL in a VB6.0 project it doesn't work. The class is
correctly imported and I can create an object of that class, but it is not
possible to access at the method (SumNumbers).
In the project properties I setted the 'Register for COM Interop' as true,
but I tried both, true and false, and it doesn't work.
Any suggestions?
Thank you very much in advance.