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?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?