passing an array to a DLL

Questions about MultiCharts and user contributed studies.
janus
Posts: 838
Joined: 25 May 2009
Has thanked: 64 times
Been thanked: 105 times

passing an array to a DLL

Postby janus » 01 May 2012

Can someone please post an example DLL of how to receive a MC 1-dimensional array using ELKit32? Presumably it will be in C++, which is fine but I will need to convert it to FreeBasic or PowerBasic.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: passing an array to a DLL

Postby Emmanuel » 07 May 2012

Hi Janus,

I looked for an answer for you in the past few days, it should look like that :


external: “MyDll.dll”, double, “MyADX”, IEasyLanguageObject {self}, int{Length};

inputs:
Length( 10 ) ;
variables:int MyELVar( 0 ) ;

MyELVar = MyADX( self, Length ) ;

I found this example in the EasyLanguage Extension SDK , page 5 title:

3.) IEasyLanguageObject Pointer (self)

I hope this will help you

Emmanuel

janus
Posts: 838
Joined: 25 May 2009
Has thanked: 64 times
Been thanked: 105 times

Re: passing an array to a DLL

Postby janus » 27 May 2012

Thanks Emmanuel but I tried all that, and more. I asked MC support for some examples but it appears even they can't help with this. I'm beginning to suspect I need to use C++ or perhaps PowerBasic to make this work, or passing of arrays to a DLL doesn't work with MC, only with TS.


Return to “MultiCharts”