This is my code in Visual Studio C++
#include \"stdafx.h\"
#include
#include
using namespace cv;
int main(int
First check How to build applications with OpenCV inside the Microsoft Visual Studio
If you still suffer from the same problem, you could be under one of the below cases.
If you are under one of these cases, check Compiling a 64-bit Application in Microsoft Visual Studio Express 2010