본문 바로가기
반응형

델파이89

[delphi] Registering DLL and ActiveX controls from code [delphi] Registering DLL and ActiveX controls from code How to register (and unregister) OLE controls such as dynamic-link library (DLL) or ActiveX Controls (OCX) files from a Delphi application. RegSvr32.exe The regsvr32.exe command-line tool registers dll and ActiveX controls on a system. You can manually use the Regsvr32.exe (Windows.Start - Run) to register and unregister OLE controls such a.. 2011. 11. 28.
[delphi] OCX 등록 및 해제 [delphi] OCX 등록 및 해제 // (COM Server) OCX 등록 및 해제 // usage: // RegOCX('C:\Test.ocx'); unit ocxUtils; interface uses Windows, SysUtils, ComObj; procedure RegOCX(const DLLName: string); procedure UnRegOCX(const DLLName: string); implementation procedure RegOCX(const DLLName: string); begin if FileExists(DLLName) then RegisterComServer(DLLName); end; procedure UnRegOCX(const DLLName: string); type T.. 2011. 11. 28.
[개발/delphi] 중복 실행 방지 델파이로 중복 실행 방지 구현 소스 골라서 쓰자. =============================================================== #1 program Project; uses Forms, Windows, Dialogs, uMain in 'uMain.pas' {frmMain}; var hMutex : THandle; {$R *.res} begin hMutex := CreateMutex(nil, true, 'MajorProj'); // your mutex If (hMutex 0) and (GetLastError = 0) Then Begin Application.Initialize; Application.MainFormOnTaskbar := true; Application.C.. 2011. 9. 1.
[개발/MFC] 바탕화면 바꾸기 procedure 바탕화면_바꾸기(이미지파일: String; 바둑판형식: Boolean); const 바탕화면_복구 = 29699; var Reg: TRegIniFile; 바탕화면_핸들: HWND; begin // 레지스트리에 바탕화면에 대한 항목 세팅 Reg := TRegIniFile.Create('Control Panel'); Reg.WriteString('desktop', 'Wallpaper', 이미지파일); if바둑판형식 thenReg.WriteString('desktop', 'TileWallpaper', '1') else Reg.WriteString('desktop', 'TileWallpaper', '0'); // 바탕화면 변경 메세지 보냄 바탕화면_핸들:=FindWindow('ExploreWC.. 2011. 8. 1.
[개발] 델파이 DLL injection 델파이로 dll injection 하는 예 procedure TForm1.Button1Click(Sender: TObject); var aHandle, hProcess , ThreadHandle : THandle; PID : Integer; DllName : String; DllNamePos : Pointer; BytesWritten , TheadID : DWORD; begin DllName := ExtractFilePath(ParamStr(0)) + 'Inject.dll'; PID := 0; aHandle := FindWindow('notepad', Nil); if aHandle 0 then GetWindowThreadProcessId(aHandle, @PID); if PID 0 then begin h.. 2010. 11. 2.
[개발/델파이] 실행시에 Database Alias생성 [강좌] #6 실행시에 Database Alias생성 이번 강좌는 델파이 어플리케이션에서 ALIAS하고 생성하고 사용하는 것에 대해 많은 도움이 될 것이라고 생각합니다. 일반적으로 alias는 BDE Configuration 유틸리티인 BDECFG.EXE를 이용해서 별도로 지정하죠.... 그러나, 더욱 좋은 방법이 있죠.... 흐흐.... TDatabase 컴포넌트를 이용해서 어플리케이션 실행하는 도중에 Alias를 생성하여 사용할 수 있죠.... Alias는 데이타베이스 테이블의 경로와 데이타베이스 서버에 대한 연결 파라메터를 지정하게 됩니다. ( Alias가 어떤 기능을 하는지는 다 아시죠... ) Alias를 실행 중에 진행하게 되면 어떤 좋은 점이 있을까요.. 그것은 어플리케이션이 실행중에 IDA.. 2010. 10. 15.
반응형