<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Using custom DLLs in FSB indis]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8477/" />
	<updated>2020-07-07T18:57:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8477/using-custom-dlls-in-fsb-indis/</id>
		<entry>
			<title type="html"><![CDATA[Using custom DLLs in FSB indis]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/61425/#p61425" />
			<content type="html"><![CDATA[<p>I&#039;m trying to use custom C# DLL in Pro. But I can&#039;t get past &quot;unable to find entry point&quot; error.</p><p>Everything seems to be in order.</p><p>DLL code, which compiles without errors in VS10</p><div class="codebox"><pre><code>using System;

namespace testlibr
{
    public class Class1
    {
        public int gettst(int nr)
        {
            if (nr == 5)
            {
                return 555;
            }
            return 0;
        }
    }
}</code></pre></div><p>And the custom indi for Pro, which has the necessary namespace, DllImport, entry point defined, method introduced as per documentation and examples I&#039;ve studied.</p><div class="codebox"><pre><code>using System.Runtime.InteropServices;

namespace ForexStrategyBuilder.Indicators.Store
{
    public class dlltest : Indicator
    {
        [DllImport(@&quot;C:\Documents and Settings\Administrator\Desktop\Forex Strategy Builder Pro\Versions\3.8.4.0\testlibr.dll&quot;, EntryPoint = &quot;gettst&quot;)]
        public static extern int gettst(int nr);</code></pre></div><p>And it fails... What am I doing wrong?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2020-07-07T18:57:46Z</updated>
			<id>https://forexsb.com/forum/post/61425/#p61425</id>
		</entry>
</feed>
