MinGw and RateInfo structure

 
Hi
Is it possible to compile a dll with MinGw for metatrader experts?
I get many wrong prices in RateInfo struct array and I think I did it the way the sample dll did that.

here is my simple function:

DLLIMPORT void __stdcall getPrice(const struct RateInfo* rates,int size, int item)
{       
         char s[10000]; 
         unsigned int index = size-1-item;
         sprintf (s,"Here is %g %g %g %i %i",rates[index].close,  rates[index].open,rates[index].high,size,index);
          MessageBox (0,s,"getPrice", MB_ICONINFORMATION);
}



Regards Mani

 
"Is it possible to compile a dll with MinGw for metatrader experts?"

It should be...

Your code looks ok, I guess. Is the RateInfo "structure" just an array?

Show the code on the MT4 side...