First time here? Check out the FAQ!
answered 2013-03-16 02:38:40 -0600
This link does the trick for windows 7 and it is exactly the same steps you need to use for windows 8 since the backend of both systems is kind of identical.
http://karanjthakkar.wordpress.com/2012/11/21/usin-opencv-2-4-2-with-visual-studio-2012-on-windows-7-64-bit/