Skip navigation.
Home
Metatrader community - Forex Trading with Metatrader

dll needs float type

Metatrader 4

The dll I'm using requires a float type. MT4 only uses double types. How do I send a double to a fuinction like

//(code from tradecel.H)
short _stdcall TRADE_ASK(float *ov);

When I try to use this function in mt4 I get an "incompatible type" error

#import "TRADECELGBPOPEN.DLL"
double TRADE_ASK(double& currask[0])
{return(answer);}
//
answer1=TRADE_ASK(currask[0]);

Any ideas anybody?