mql4中为什么用GetLastError()没有返回任何值?

比如这一句 printf("开仓失败",GetLastError() );

GetLastError()返回的是整数值,调整如下
"开仓失败:%d"