CUDA and fopen

Hello there!

I builded zlib 1.2.7, libpng15 and my program:

This program crashes on png_write_info. fp is not NULL.
P.S. Windows XP SP3, MSVC 2010, because in GNU/Linux on newest GCC and glibc CUDA ToolKit don’t work.