<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Hi Tamas,<br>
<br>
Thanks for the reply. I tried your method in the overkill-mode to be sure: copying all dlls from gdal\bin and gdal\bin\gdal\csharp and this worked with the 32bit (not the 64 bit). I had already set the path to gdal\bin so I don't understand why it doesn't work but hey, I'm a happy man!<br>
<br>
Cheers!<br>
<br>
Tom<br>
<br>
<br>
<span style="font-weight: bold;">On Wed 10/02/10 18:03 , Tamas Szekeres szekerest@gmail.com sent:<br>
</span><blockquote style="border-left: 2px solid rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px; padding-right: 0px;">Hi Tom,<br>
<br>
In this case you'll have to set a reference to ogr_csharp.dll and make sure the unmanaged dll-s (ogr_wrap.dll and it's dependencies like proj.dll) are available to load by the application, either by copying these dll-s into your executing directory or make them available in the PATH environment.<br>
<br>
Best regards,<br>
<br>
Tamas<br>
<br>
<br>
<br>
<div class="gmail_quote">2010/2/10 Tom van der Putte <span dir="ltr"><<a href="javascript:top.opencompose('tom@vdputte.nl','','','')">tom@vdputte.nl</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I'm currently having a problem getting the C# OGR binaries to work on a 64bit WinXP Pro machine, using VS2008 Pro. Ive tried both the 32bit Binaries and the 64 bit binaries.<br>
<br>
* Using the 32bit binaries from <a href="http://vbkto.dyndns.org:1280/sdk/Default.aspx" target="_blank">http://vbkto.dyndns.org:1280/sdk/Default.aspx</a> as well as the general FW windows binaries:<br>
I set the target platform to x86, added the reference path to the 32bit binaries and added those as a reference. However the ogr_warp.dll is nowhere to be seen in the references. Calling the Ogr.RegisterAll(); results in the error :"Unable to load DLL 'ogr_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" <br>
<br>
When I manually try to add the dll under the references, it says it cannot do so, and I have to check that it is either in use, or a valid assembly.<br>
<br>
* Using the 64bit binaries from <a href="http://vbkto.dyndns.org:1280/sdk/Default.aspx," target="_blank">http://vbkto.dyndns.org:1280/sdk/Default.aspx,</a> and the target platform set to x64, the ogr_wrap.dll file is not in the bin/debug dir, and I get an error: "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"<br>
<br>
If I add the ogr_warp.dll to the debug/bin folder, the "Unable to load DLL 'ogr_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" error pops up.<br>
<br>
Any ideas?<br>
<br>
Cheers,<br>
<span style="color: rgb(136, 136, 136);">
Tom<br>
<br>
<br>
<br>
<br>
<br>
<br>
</span><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="javascript:top.opencompose('gdal-dev@lists.osgeo.org','','','')">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>
</blockquote></HTML>