correction:3) Moving the GAMEX_Init call into the MAME32_CreateWindow function and passing it the local hWnd, which based on the line hWnd = CreateWindow( _T("MAMECE_PLAYWINDOW"), I was hoping was the actual window we wanted to do the GX thing to.