How Passing String Array To DLL

 

Hi,

I want know how passing string array to DLL.

string symm[3]={"R1","R2","R3"};

Mql section:

# import name.dll

string Paste(string &rr[]);

Paste(symm);

DLL section:

MT4_EXPFUNC char* __stdcall Paste(char* sym){

}

how I can read here? Anytime I tried it failed.

but when pass only string it works correct.

How I can pass string srray to dll?

Regards,

 
fxturn:

Hi,

I want know how passing string array to DLL.

string symm[3]={"R1","R2","R3"};

Mql section:

# import name.dll

string Paste(string &rr[]);

Paste(symm);

DLL section:

MT4_EXPFUNC char* __stdcall Paste(char* sym){

}

how I can read here? Anytime I tried it failed.

but when pass only string it works correct.

How I can pass string srray to dll?

Regards,

Find and open experts/samples folder where your MT4 is installed.

And search in forum https://www.mql4.com/search#!keyword=Array of string in C++module=mql4_module_forum

Reason: