Hallo!
Try the following two snippets!
The first one has a /* */ comment
#define UNICODE
#define _UNICODE
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
/*
int __cdecl WinMainCRTStartup(void)
*/
int main(int argc, char **argv)
{
int i;
for (i=1;i<5;i++)
printf("%d\n",i);
return 0;
}
the second a // comment
#define UNICODE
#define _UNICODE
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
//int __cdecl WinMainCRTStartup(void)
int main(int argc, char **argv)
{
int i;
for (i=1;i<5;i++)
printf("%d\n",i);
return 0;
}
while debugging the second example. The debugger is one line above the real position.
If I remove the line
#include <stdlib.h>
the problem is gone.
czerny