Skip to content

Commit

Permalink
- add more com port speeds
Browse files Browse the repository at this point in the history
- call SetProcessDpiAwareness instead app config
  • Loading branch information
olegel committed May 28, 2019
1 parent d10213a commit 9ecb0a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
8 changes: 7 additions & 1 deletion CanLogger/VolvoCanLogger/LoggerWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions CanLogger/VolvoCanLogger/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ static class Program
[STAThread]
static void Main()
{
if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware();

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

Expand All @@ -24,6 +26,9 @@ static void Main()
Application.Run(new LoggerWindow());
}

[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();

private static void SaveExceptionToFile(Exception ex)
{
string errorMsg = $"\n{DateTime.Now} Exception: {ex.Message}\nStack Trace:\n {ex.StackTrace}";
Expand Down
Binary file modified Release/VolvoCanLogger.exe
Binary file not shown.
10 changes: 0 additions & 10 deletions Release/VolvoCanLogger.exe.config

This file was deleted.

Binary file modified Release/VolvoCanLogger.pdb
Binary file not shown.

0 comments on commit 9ecb0a8

Please sign in to comment.