A question about the use of function in DLL

 

As you see below,I use this function from DLL :

MT4_EXPFUNC int __stdcall test(int a[])
{
        return a[0];
}

and the code in MT4 is :

int b[2];
b[0] = 7;
b[1] = 8;
Print("******:",test(b),",Error:",GetLastError());

so,I was expected the result 7,but actually the result is :

2013.08.19 16:14:48     SockSer USDJPY,H4: ******:-1548528064,Error:0

and sometimes the result maybe:

2013.08.19 15:47:09     SockSer USDCAD,H1: ******:1889394240,Error:0

so this result is not for sure,but what Im sure about is that this is not what I expect,I doubt whether its something wrong between vc++6.0 and MT4.

Anyone can help?thx a lot.