//private static object theming_ref; //holds a reference to a theming object in windows so that its not garbage collected public static Result Open() { AppendWindowsPath(); //EnableThemingInScope.EnableThemingInWindows(); Result res = (Result)NativeIUP.IupOpen(IntPtr.Zero, IntPtr.Zero); // In .NET we always want unicode Iup.SetStrGlobal("UTF8MODE", "YES"); Iup.SetStrGlobal("UTF8MODE_FILE", "YES"); return(res); }
//private static object theming_ref; //holds a reference to a theming object in windows so that its not garbage collected public static Result Open() { int siz = IntPtr.Size; // Add search path first to path system variable string exe = Environment.GetCommandLineArgs()[0]; //EnableThemingInScope.EnableThemingInWindows(); Result res = (Result)NativeIUP.IupOpen(IntPtr.Zero, IntPtr.Zero); // In .NET we always want unicode Iup.SetStrGlobal("UTF8MODE", "YES"); Iup.SetStrGlobal("UTF8MODE_FILE", "YES"); return(res); }