Checking AcountName in external DLL

 

I'm trying to check AcountName in external DLL:


I have no problem with AccountNumber:

MT4_EXPFUNC int __stdcall Test( int MyAccountNumber )
{
if( MyAccountNumber == 12345 ) { return(1) ; }
else { return(0); }
}


But how can I do the same with AccountName?

MT4_EXPFUNC int __stdcall Test( ??? MyAccountName )
{
if( MyAccountName == "Test" ) { return(1) ; }
else { return(0); }
}

There are some problems with ASCII, UNICODE...

Can anyone help, please?

 
markog wrote >>

I'm trying to check AcountName in external DLL:

I have no problem with AccountNumber:

MT4_EXPFUNC int __stdcall Test( int MyAccountNumber )
{
if( MyAccountNumber == 12345 ) { return(1) ; }
else { return(0); }
}

But how can I do the same with AccountName?

MT4_EXPFUNC int __stdcall Test( ??? MyAccountName )
{
if( MyAccountName == "Test" ) { return(1) ; }
else { return(0); }
}

There are some problems with ASCII, UNICODE...

Can anyone help, please?

you was trying with widestring?

 
EADeveloper:

you was trying with widestring?

Actually I don't know the differece between widestring and string. I'm new in C++.

I just wan't to check accountname through dll.

Can you help?

Reason: