#include "stdafx.h"
#include <stdio.h>

って入れ替えたら、うまく動きました。
ただ、知る人ぞ知る書式演算子 %n

int iLength = 0;

printf("hello%n\n", &iLength);
printf("%d", iLength);

でアサート吐かれるんだけど、何でだろ?