dll needs float type
Submitted by dougr3 on Sat, 2008-02-02 16:15.
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?
