When a recipe calls for Wine, does it make a difference what wine to use?
As a corollary to the excellent advice from Aaronut, there is an important rule of thumb when selecting a wine to cook with:

If you wouldn't drink it, don't cook with it.