Winapi.WinSock을 이용한 WOL(Wake On Lan) 구현
WinSock을 이용한 WOL(Wake On Lan) 구현 unit Unit1; interface usesWindows, Messages, SysUtils, Variants, Classes,Graphics, Controls, Forms, Dialogs, StdCtrls, WinSock; typeTForm1 = class(TForm)Edit1: TEdit;Button1: TButton;Memo1: TMemo;procedure Button1Click(Sender: TObject);procedure FormCreate(Sender: TObject);procedure FormClose(Sender: TObject; var Action: TCloseAction);private{ Private declarati..
2024. 7. 2.
C# 문법
C# 문법 global using System; using System.Globalization; using static System.Console; namespace Hello { class MainApp { //enum DialogResult { YES, NO, CANCEL, CONFIRM, OK }; enum DialogResult { YES = 10, NO, CANCEL, CONFORM = 50, OK }; static void Main(string[] args) { //1번 테스트 /* if (args.Length == 0) { Console.WriteLine("사용법 : Hello.exe "); return; } WriteLine("Hello, {0}!", args[0]); */ //2번 테..
2024. 7. 1.