Shp file read and write source code (VC++)