I already reseached but didn't fount what I need. In Java you can load a .dll with System.load("path");. But anything beyond this is too confusing for me. So I need soneone who can explain me this. In C# I have the following class compiled into TestDll.dll:
namespace TestNamesapce
{
public class TestClass
{
private int testInt;
public TestClass(int pTestInt)
{
testInt = pTestInt;
}
public int AddToTestInt(int pToAdd)
{
return testInt + pToAdd;
}
}
}
How can I create a TestClass object and call the AddToTestInt method in Java? Atm Im at this point:
package testPackage;
public class JavaTestClass
{
public static void main(String[] args)
{
try
{
System.Load("D:\\MyDLLs\\TestDll.dll")
}
catch(Exception ex)
{
ex.printStackStrace();
}
}
}
Please explain as simple as possible, thank you realy much :)