If I try to compile SDL code, then it gives me an "Access Violation" error.
If I hit break I see the following:
CODE
_main:
00402310 push ebp
00402311 mov ebp,esp
00402313 push ecx
00402314 mov eax,dword ptr [___security_cookie (428018h)]
00402319 xor eax,ebp
0040231B mov dword ptr [ebp-4],eax
0040231E push ebx
0040231F mov ebx,dword ptr [ebp+0Ch]
00402322 push esi
00402323 mov esi,dword ptr [ebx]
00402325 push edi
00402326 mov edi,dword ptr [__imp__strrchr (410100h)]
With
CODE
00402323 mov esi,dword ptr [ebx]
highlighted.
It is not surprising because ebx is 0 (at least the debugger tells me so if I hover it).
But I don't know why.
Please help. Thanks in advance