passing an array to a DLL
passing an array to a DLL
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.
Re: passing an array to a DLL
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
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
Re: passing an array to a DLL
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.