<div>Friends,</div>
<div>I sent this mail on Friday. Request for a remedy. If someone can send a built-in project (needn't be with a high end code) using MFC in VC++ 2008 in a Win Zip or RAR, it will be even better.</div>
<div> </div>
<div>The error  (pl. see No. 8) I got is f:\sw\GDALexperiment\GDALexperiment\header\cpl_port.h: fatal error C1189: #error :  "Unexpected value for SIZEOF_UNSIGNED_LONG" GDALexperiment.cpp</div>
<div><br>I wish to use MFC which is part of Visual C++ 2008 and GDAL.</div>
<p><br>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></p>
<p><br>2. Extracted the zip file. Compiled the project to get gdal110.dll + many .lib files + many .h files</p>
<p><br>3. Created a folder in my project ('ref'). Copied gdal110.dll into the ref folder</p>
<p><br>4. Likewise created two folders 'header' and 'lib'. Copied lib files from the download to lib and h files<br>    to header folders</p>
<p><br>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)</p>
<p><br>6. In CMyProjectdoc.h, included gdal_priv.h and cpl_conv.h just below # pragma once</p>
<p><br>7. Declared a variable in the same file GDALDataset *indataset;</p>
<p><br>8. Compiled (without writing anything further) and got error(s): Unexpected values...</p>
<p><br>Can anyone teach me where I went wrong and how to proceed correctly.</p>
<p><br>                                                                                                   Thanking you,</p>
<p><br>                                                                                                      B. Ramesh</p>