I created a basic test DLL which contains a single cpp file with the following code:
extern “C”
{
int DoubleNumber( int i )
{
return i + i;
}
}
I copy the DLL (compiled with VS2008) and place it into my project Plugins directory.
The DLL is referenced in a C# script as follows:
[DllImport("Test.dll")]
public static extern int DoubleNumber( int i );
The code builds fine, but when I run the game I get the error: “DllNotFoundException: Test.dll”.
Any idea why this might be happening?
Thanks.