WingMan – Diff between revs 14 and 37

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 14 Rev 37
Line 1... Line 1...
1 using System; 1 using System;
-   2 using System.IO;
-   3 using System.Reflection;
-   4 using System.Runtime.InteropServices;
2 using System.Windows.Forms; 5 using System.Windows.Forms;
Line 3... Line 6...
3   6  
4 namespace WingMan 7 namespace WingMan
5 { 8 {
Line 9... Line 12...
9 /// The main entry point for the application. 12 /// The main entry point for the application.
10 /// </summary> 13 /// </summary>
11 [STAThread] 14 [STAThread]
12 private static void Main() 15 private static void Main()
13 { 16 {
-   17 // Set base directory.
-   18 Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
-   19  
-   20 // Load SQLite3 native libraries.
-   21 SetDllDirectory(Environment.Is64BitOperatingSystem
-   22 ? Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "x64")
-   23 : Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "x86"));
-   24  
-   25  
14 Application.EnableVisualStyles(); 26 Application.EnableVisualStyles();
15 Application.SetCompatibleTextRenderingDefault(false); 27 Application.SetCompatibleTextRenderingDefault(false);
16 Application.Run(new WingManForm()); 28 Application.Run(new WingManForm());
17 } 29 }
-   30  
-   31  
-   32 [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
-   33 [return: MarshalAs(UnmanagedType.Bool)]
-   34 private static extern bool SetDllDirectory(string lpPathName);
-   35  
18 } 36 }
19 } -  
20   37 }
-   38