Prerequisites
Before replicating this scenario, you need first to build up your runtime environment.
-
Create the DLL to be loaded by tDotNETInstantiate
This example class built into .NET reads as follows:
using System; using System.Collections.Generic; using System.Text; namespace Test1 { public class Class1 { string s = null; public Class1(string s) { this.s = s; } public string getValue() { return "Return Value from Class1: " + s; } } }
This class reads the input value and adds the text Return Value from Class1: in front of this value. It is compiled using the latest .NET.
-
Install the runtime DLL from the latest .NET. In this scenario, we use janet-win32.dll on Windows 32-bit version and place it in the System32 folder.
Thus the runtime DLL is compatible with the DLL to be loaded.