Developers/Delphi[델파이] 러쉬맥닷넷
뮤텍스(Mutex)로 프로그램 중복 실행 방지... 프로젝트 dpr 안에 프로그램 중복 실행 방지 코드 입력으로 간단히 처리 소스 program Project2; uses Forms, Windows, Unit1 in 'Unit1.pas' {Form1}; {$R *.res} Var Mutex: THandle; begin Mutex := CreateMutex(nil, True, '중복실행 방지'); if (Mutex > 0) and (GetLastError = 0) then begin try Application.Initialize; Application.Title := '중복실행 방지'; Application.MainFormOnTaskbar := True; Application.CreateForm(TFor..
Indy Component 들 중 IdHTTP라는 Component 이용하여 웹 통신 IdHTTP는 http프로토콜 제공해주는 7가지 중 GET, POST방식 모두 사용해서 통신하여 구현하고자 하는 프로그램에 맞게 사용 가능합니다. 1. Get 방식 일경우(http, https) pURL --> https://도메인주소.com?name1=value1&name2=value2 pAuthorization --> Authorization : 인증키 //{$region 'Https/ Get방식'} //pURL : 웹주소( https://도메인주소.com?파라미터) //pAuthorization : 인증키(Authorization) function httpsGet(pURL, pAuthorization : WideS..