# Error for read bmp file

**URL:** <https://discourse.vtk.org/t/error-for-read-bmp-file/5345>\
**Category:** Development\
**Created:** [March 9, 2021, 6:52am UTC](https://discourse.vtk.org/t/error-for-read-bmp-file/5345 "2021-03-09T06:52:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaocaiji](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/x/b9bd4f/32.png) [@xiaocaiji](https://discourse.vtk.org/u/xiaocaiji)\
**Post date:** [March 9, 2021, 6:52am UTC](https://discourse.vtk.org/t/error-for-read-bmp-file/5345/1 "2021-03-09T06:52:44Z")

</div>

Thanks for attention.  
I succeed building the example [ReadBmp](https://kitware.github.io/vtk-examples/site/Cxx/IO/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

 ![image](https://discourse.vtk.org/uploads/default/original/2X/6/61f793f4c0bee141b3cd77df30f45e86b9e5b004.png)
