These lectures give an introduction to the interrelated topics of Calabi-Yau compactification of the type II string, black hole attractors, the all-orders entropy formula, the dual (0,4) CFT, topological strings and the OSV conjecture. Based on notes by MG of lectures by AS at the 2006 Cargese summer school.