2010-05-24

Compiling resource files with Visual Studio Express

If you pick a Visual Studio project with an MFC GUI app, and try to compile it with Visual Studio Express, you should run into the error:
fatal error RC1050: Cannot open include file 'afxres.h'.
The solution? Replace your:
#include "afxres.h"
from your .rc file with the following:
#include <windows.h>
#define IDC_STATIC -1

2010-05-14

running XP inside qemu on Windows

  • Compiled qemu from source using MinGW32/Msys (hint: add the "target-list=i386-softmmu" so that you only compile the target of interest to you). Haven't figured out how to get a Ctrl-Alt-2 that actually works yet...
  • Installed UltraVNC
  • Copied the qemu exec from i386-softmmu to pc-bios and ran everything from pc-bios
  • Created HDD image (with qemu-img)
  • Default of qemu on IPV6 system is to use IPV6 which makes the VNC connection unavailable - need to provide IPv4 address to -vnc option, and thus, from the pc-bios directory:
    qemu -usb -vnc 127.0.0.1:0 -hda winxp.img -m 512 -localtime -net user -net nic,model=rtl8139  -cdrom //./d:
  • Connected through UltraVNC viewer with "localhost::5900" and installed XP
  • First thing to do once XP is installed is to disable mouse acceleration by disabling "Enhance Pointer Precision" in Mouse Properties -> Pointer Options