Visual studio 2017(이하 VS2017)에서는 기본적으로 .NET Core 2.1까지 지원합니다. 따라서, 2.2버전을 사용하기 위해서는 SDK를 마소 공홈에서 다운로드 받아서 적용시켜야 합니다. https://dotnet.microsoft.com/download/dotnet-core/2.2 Download .NET Core 2.2 (Linux, macOS, and Windows) .NET Core 2.2 downloads for Linux, macOS, and Windows. .NET Core is a cross-platform version of .NET, for building apps that run on Linux, macOS, and Windows. dotnet.microsoft...
https://32feet.codeplex.com/이 사이트가 C#에서 블루투스에 관한 라이브러리를 제공해줌.Nuget패키지에 32feet로 참조하거나 위의 사이트에서 zip파일을 다운받아서 참조하면 된다.(3.5가 표준인데 밑의 코드는 3.7버전을 씀) Peer장치의 정보와 Local장치의 정보, RSSI(Received Signal Strength Indication)등등 여러가지 정보를 가져올 수 있다. 이 라이브러리를 이용해서 PC에 블루투스 동글을 꽂아 핸드폰을 키로 사용하는 프로그램을 짜볼까한다. 라이브러리 라이센스에 관한 내용은 하단 URL참고! https://32feet.codeplex.com/license using InTheHand.Net.Bluetooth; using InTheHand..
using System; using System.Runtime.InteropServices; namespace MouseHookLib { public static class GlobalMouseHook { [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId); [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConventi..