.NET external C# DLL  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
tradetree
Posts: 81
Joined: 29 Apr 2013
Location: www.threefoldmarkets.com
Has thanked: 12 times
Been thanked: 16 times
Contact:

.NET external C# DLL

Postby tradetree » 12 Dec 2013

I have found a great deal about external DLL's for regular Multicharts, but nothing on .NET? I have a C# dll ready to be included into my .NET 64 study. How is this handled? I put the dll in the MultiCharts.NET64 program folder along with other dlls and tried to use a "using" directive, but it failed.

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: .NET external C# DLL

Postby Andrew MultiCharts » 13 Dec 2013

Hello tradetree,
  1. Was the regular MC a 32 bit application or 64 bit one?
  2. Is the .dll 32 bit or 64 bit?

tradetree
Posts: 81
Joined: 29 Apr 2013
Location: www.threefoldmarkets.com
Has thanked: 12 times
Been thanked: 16 times
Contact:

Re: .NET external C# DLL

Postby tradetree » 13 Dec 2013

Andrew,
Not sure I understand, but here is some information:
MC version: MultiCharts .NET64 Version 8.8 Release (Build 8365)
DLL: Project properties: Target: x64.
Root dir of my MC install: C:/ProgramFiles/MultiCharts.NET64

I put the dll in the root dir. I then put a "using DLLname" at the top of the PLEditor source file. Build fails.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: .NET external C# DLL  [SOLVED]

Postby JoshM » 13 Dec 2013

(...)
I put the dll in the root dir. I then put a "using DLLname" at the top of the PLEditor source file. Build fails.
You probably still need to add the reference to the DLL in the PowerLanguage Editor (also see here (first bulletpoint)).

tradetree
Posts: 81
Joined: 29 Apr 2013
Location: www.threefoldmarkets.com
Has thanked: 12 times
Been thanked: 16 times
Contact:

Re: .NET external C# DLL

Postby tradetree » 13 Dec 2013

That did it! I am now finally ported to MC. Thanks Josh for the tip.


Return to “MultiCharts .NET”