char caption[]="Tutorial!"; char text[]="Win32Asm is great!"; __asm { push MB_OK push caption push text push NULL call MessageBox } Unhandled exception at 0x0042a30c in hypot.exe: 0xC0000005: Access violation reading location 0xffffffff. Подскажите, пожалуйста, где ошибка.
Код (Text): LPSTR caption="Tutorial!"; LPSTR text="Win32Asm is great!"; HMODULE hLib = LoadLibrary("user32.dll"); FARPROC addr = GetProcAddress(hLib,"MessageBoxA"); __asm { push MB_OK push caption push text push NULL mov eax,addr call eax }