Thanks for attention.
I succeed building the example ReadBmp and running it in cmd.
Then I try to run the code in visual studio. But once I modify the code:
reader->SetFileName(argv[1]);
to
reader->SetFileName(“mypicture.bmp”);
and delete the lines about argc and argv, the error occured