Discusión sobre el artículo "Guía para escribir un DLL para MQL en Delphi" - página 3

 

ayuda a quien pueda ...

en delphi 7 dll procedure...

procedure test1(var data: array of Double); stdcall;
begin
ShowMessage('Introducido ');

end;

en mt4 :

#import "gayss.dll"
void test1( double &data[] );
#import

ArrayResize(data, 6);
data[0]= 2;
data[1]= 4;
data[2]= 8;
data[3]= 16;
data[4]= 21;

datos[5]= 3;

prueba1(datos);

y aparece un error. 2014.02.06 17:39:04.241 pila dañada, comprobar llamada a función DLL en 'SOG_2014.mq4' (80,7)

A lo mejor alguien sabe como hacerlo correctamente....

 
MetaQuotes:

Nuevo artículo Guía para escribir una DLL para MQL5 en Delphi ha sido publicado:

Autor: Andrey Voytenko


Si trabajas con versiones antiguas de delphi, como yo, D7, puedes usar funciones de conversión o usar la librería jcl hay unicode para que la uses, es un paquete de componentes gratuito solo entra en sourcefoge.net y busca jcl descarga e instala

 
DooMGuarD:
Hola DooMGuarD, ¡muy buena información! ¡Gracias por compartirla!
 

Hello Andrey, his article is excellent, congratulations.

 

I have a doubt. I have RAD Studio 10 Seattle. When I entry to "Project Options for..." (Shift + Ctrl + F11) I find the next:

 

 

 

I do not find the checkButton "Build with runtime packages". I want to request a recomendation about "What must I do about this?". Thank you for your attention.

 

I had to change a part of the code source.

 

 

 

however, when I run the source code

 

 
Jorge Fernando De Los Ríos De Los Ríos:

I had to change a part of the code source.

 

 

 

however, when I run the source code

 

sorry, I had not read all the article
 
Jorge Fernando De Los Ríos De Los Ríos:

Hello Andrey, his article is excellent, congratulations.

 

I have a doubt. I have RAD Studio 10 Seattle. When I entry to "Project Options for..." (Shift + Ctrl + F11) I find the next:

 

 

 

I do not find the checkButton "Build with runtime packages". I want to request a recomendation about "What must I do about this?". Thank you for your attention.

however:

 

 
These codes only run in 32 bits