Topic: Using custom DLLs in FSB indis
I'm trying to use custom C# DLL in Pro. But I can't get past "unable to find entry point" error.
Everything seems to be in order.
DLL code, which compiles without errors in VS10
using System;
namespace testlibr
{
public class Class1
{
public int gettst(int nr)
{
if (nr == 5)
{
return 555;
}
return 0;
}
}
}
And the custom indi for Pro, which has the necessary namespace, DllImport, entry point defined, method introduced as per documentation and examples I've studied.
using System.Runtime.InteropServices;
namespace ForexStrategyBuilder.Indicators.Store
{
public class dlltest : Indicator
{
[DllImport(@"C:\Documents and Settings\Administrator\Desktop\Forex Strategy Builder Pro\Versions\3.8.4.0\testlibr.dll", EntryPoint = "gettst")]
public static extern int gettst(int nr);
And it fails... What am I doing wrong?