<div dir="ltr">Friends,<div>I wish to use MFC which is part of Visual C++ 2008 and GDAL.</div><div><br></div><div>1. I downloaded GDAL 'latest stable release'  as a zip file from <a href="http://trac.osgeo.org/gdal/wiki/DownloadSource">http://trac.osgeo.org/gdal/wiki/DownloadSource</a></div>
<div><br></div><div>2. Extracted the zip file. Compiled the project to get gdal110.dll + many .lib files + many .h files</div><div><br></div><div>3. Created a folder in my project ('ref'). Copied gdal110.dll into the ref folder</div>
<div><br></div><div>4. Likewise created two folders 'header' and 'lib'. Copied lib files from the download to lib and h files</div><div>    to header folders</div><div><br></div><div>5. In Tools|Options in Visual Studio in my project: accessed Projects and Solutions: VC++      directories and mentioned header (Include Files), ref (Reference Files) and lib (library files)</div>
<div><br></div><div>6. In CMyProjectdoc.h, included gdal_priv.h and cpl_conv.h just below # pragma once</div><div><br></div><div>7. Declared a variable in the same file GDALDataset *indataset;</div><div><br></div><div>8. Compiled (without writing anything further) and got error(s): Unexpected values...</div>
<div><br></div><div>Can anyone teach me where I went wrong and how to proceed correctly.</div><div><br></div><div>                                                                                                   Thanking you,</div>
<div><br></div><div>                                                                                                      B. Ramesh</div></div>