<p>Problem solved!</p>
<p>I had to add a reference to my Visual Studio project to the <b>gdal_csharp.dll</b>. Now, I have the GDAL interface when adding <b>using OSGeo.GDAL</b> to my class. This allows me to use the following code to load the right DLL's:</p>
<code>String gdal_bin_path = @"c:\path\to\my\binaries";<br/>
String gdal_driver_path = @"c:\path\to\my\binaries\gdalplugins";<br/>
String path = Environment.GetEnvironmentVariable("PATH");<br/>
<br/>
if (!path.Contains(gdal_bin_path)) {<br/>
&nbsp;&nbsp;Environment.SetEnvironmentVariable("PATH", gdal_bin_path + ";" + path);<br/>
}<br/>
<br/>
Gdal.SetConfigOption("GDAL_DRIVER_PATH", gdal_driver_path);</code>
<p>Now the ECW files show up as they are supposed to.</p>
<p>- Kristian Frost</p>
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5934825.html">Re: Problem with ECW files</a><br>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br>