<html><div style='background-color:'><DIV class=RTE>Hello,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> 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> </DIV>
<DIV class=RTE> #include <projects.h></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> PJ *psPJSource;<BR> PJ *psPJTarget;</DIV>
<DIV class=RTE> int err;<BR> int nCount = 1;</DIV>
<DIV class=RTE> double x, y, z;</DIV>
<DIV class=RTE> x = 635999.000;<BR> y = 4836001.200;<BR> z = NULL;</DIV>
<DIV class=RTE> psPJSource = pj_init_plus("+proj=utm +zone=17 +datum=NAD83");<BR> psPJTarget = pj_init_plus("+proj=latlong +datum=WGS84");<BR> err = pj_transform( psPJSource, psPJTarget, nCount, 1, &x, &y, &z );</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>ERROR:</DIV>
<DIV class=RTE> </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> 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> </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> </DIV>
<DIV class=RTE> Thank you.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> Ilya.</DIV></div></html>