main project options is /NODEFAULTLIB, enabled intrinsic-functions and changed entry-point to WinMainA
here it my simple code which reproduce error:
#include <windows.h>
// Constants
struct _TEST
{
char test1[256];
char *test2;
int test3;
};
// Main code
void _test(_TEST *tst)
{
ZeroMemory(tst,sizeof(_TEST));
tst->test3=666;
}
int __stdcall WinMainA()
{
_TEST mmm;
_test(&mmm);
ExitProcess(mmm.test3);
}
ps. this code successfully compiled on msvs2002-2003, please, help me to solve this, thanks