[gdal-dev] How to use MFC Visual C++ and GDAL together
user gdal
userofgdal at gmail.com
Fri Oct 4 03:46:10 PDT 2013
Friends,
I wish to use MFC which is part of Visual C++ 2008 and GDAL.
1. I downloaded GDAL 'latest stable release' as a zip file from
http://trac.osgeo.org/gdal/wiki/DownloadSource
2. Extracted the zip file. Compiled the project to get gdal110.dll + many
.lib files + many .h files
3. Created a folder in my project ('ref'). Copied gdal110.dll into the ref
folder
4. Likewise created two folders 'header' and 'lib'. Copied lib files from
the download to lib and h files
to header folders
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)
6. In CMyProjectdoc.h, included gdal_priv.h and cpl_conv.h just below #
pragma once
7. Declared a variable in the same file GDALDataset *indataset;
8. Compiled (without writing anything further) and got error(s): Unexpected
values...
Can anyone teach me where I went wrong and how to proceed correctly.
Thanking you,
B. Ramesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131004/ed37a1a4/attachment.html>
More information about the gdal-dev
mailing list