Hi avcaballero,
Here is how it should go :
#include <windows.h>
#include <stdio.h>
char msg[] = "Hello world!";
char title[] = "from Pelles C";
void WriteMessage(void)
{
__asm{
push 0
push OFFSET title
push OFFSET msg
push 0
call DWORD PTR MessageBox
}
}
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
WriteMessage();
return 0;
}