Changes between Version 3 and Version 4 of GdalOgrCsharpUsage
- Timestamp:
- Oct 24, 2007, 9:25:56 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GdalOgrCsharpUsage
v3 v4 21 21 you can do it this way, in C# 22 22 {{{ 23 DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)] 23 using System.Runtime.InteropServices; 24 25 ... 26 27 [DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)] 24 28 public static extern bool 25 29 SetEnvironmentVariable(string lpName, string lpValue); 26 30 31 ... 32 33 string GDAL_HOME = @";C:\Program Files\FWTools\bin"; // for example 34 27 35 string path = Environment.GetEnvironmentVariable("PATH"); 28 path += @";C:\Program Files\FWTools\bin";36 path += ";" + GDAL_HOME; 29 37 SetEnvironmentVariable("PATH", path); 30 38 }}} 39 31 40 Now, for current process, all DLLs from FWTools package are accessible. 32 41