mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Move twaindsm binaries out of projects.
This commit is contained in:
@@ -3,32 +3,43 @@ using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WinFormSample
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
internal static class Program
|
||||
{
|
||||
//if (DsmLoader.TryUseCustomDSM())
|
||||
//{
|
||||
// Debug.WriteLine("Using our own dsm now :)");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Debug.WriteLine("Will attempt to use default dsm :(");
|
||||
//}
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
[HandleProcessCorruptedStateExceptions]
|
||||
static void Main()
|
||||
{
|
||||
//if (DsmLoader.TryUseCustomDSM())
|
||||
//{
|
||||
// Debug.WriteLine("Using our own dsm now :)");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Debug.WriteLine("Will attempt to use default dsm :(");
|
||||
//}
|
||||
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
try
|
||||
{
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (!Debugger.IsAttached) Debugger.Launch();
|
||||
Debugger.Break();
|
||||
Debug.WriteLine("Unhandled exception: " + ex.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user