<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
For the benefit of other Visual C++ 2005 Express people, here's a
summary of what I needed to do:<br>
<br>
1) Download and install VC++ 2005 Express.<br>
<br>
2) Download the Platform SDK, as described at:<br>
<br>
<a class="moz-txt-link-freetext" href="http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/">http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/</a><br>
<br>
3) Set up paths in the IDE as described there. But also add the
following two include paths:<br>
<br>
C:\Program Files\Microsoft Platform SDK\Include\atl<br>
C:\Program Files\Microsoft Platform SDK\Include\mfc<br>
<br>
4) Since we build GDAL from the command line using nmake, I found I had
to independently set up my LIB, INCLUDE and PATH environment variables
to include the Visual C++ library, include and executable paths. The
command shell that comes with VC++ does not unfortunately set these
from the IDE options, so doesn't include the extra paths you add in the
IDE... But that shell provides a good start - open it up and then copy
the relevant bits of the above three variables to your system
environment variables. Then add on the Platform SDK paths as above.<br>
<br>
5) Modify the platform SDK atlbase.h file as described at:<br>
<br>
<a class="moz-txt-link-freetext" href="http://groups.yahoo.com/group/wtl/message/12850">http://groups.yahoo.com/group/wtl/message/12850</a><br>
<br>
You don't actually need to install WTL for GDAL.<br>
<br>
6) Everything should now compile using "nmake /f makefile.vc". If you
do a nmake install or devinstall, then make sure the manifest files get
copied along with the DLLs and EXEs. This should happen automatically
with the latest CVS code.<br>
<br>
<br>
Next task, to check out those C# bindings so I never have to program in
C++ again... :)<br>
<br>
Cheers,<br>
<br>
Sy<br>
<br>
<br>
<br>
Simon Perkins wrote:
<blockquote cite="mid43B5C667.7090805@perkins.net" type="cite">
  <meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
OK, got it all to work...<br>
  <br>
</blockquote>
</body>
</html>