<html><div style='background-color:'><DIV class=RTE>Hello,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to use the following to reproject a single point from utm to latlong, but it gives me an error (see after the code), apparently windows already uses the PVALUE definition:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;projects.h&gt;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PJ *psPJSource;<BR>&nbsp;PJ *psPJTarget;</DIV>
<DIV class=RTE>&nbsp;int err;<BR>&nbsp;int nCount = 1;</DIV>
<DIV class=RTE>&nbsp;double x, y, z;</DIV>
<DIV class=RTE>&nbsp;x = 635999.000;<BR>&nbsp;y = 4836001.200;<BR>&nbsp;z = NULL;</DIV>
<DIV class=RTE>&nbsp;psPJSource = pj_init_plus("+proj=utm +zone=17 +datum=NAD83");<BR>&nbsp;psPJTarget = pj_init_plus("+proj=latlong +datum=WGS84");<BR>&nbsp;err = pj_transform( psPJSource, psPJTarget, nCount, 1, &amp;x, &amp;y, &amp;z );</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>ERROR:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>--------------------Configuration: Test01 - Win32 Release--------------------<BR>Compiling...<BR>Test01Dlg.cpp<BR>C:\PROJ\SRC\projects.h(178) : error C2371: 'PVALUE' : redefinition; different basic types<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winreg.h(88) : see declaration of 'PVALUE'<BR>Error executing cl.exe.<BR>Creating browse info file...</DIV>
<DIV class=RTE>Test01.exe - 1 error(s), 0 warning(s)</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I am not sure whether the way I am doing it is correct, if someone can help me with this I would really appreciate it.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank you.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ilya.</DIV></div></html>