본문 바로가기
반응형

개발469

[개발/delphi] 외부 프로그램 실행하고 기다리기 Execute and wait [delphi] Execute and wait for termination (16 and 32bit applications) http://www.delphifaq.com/faq/delphi_windows_API/f353_0.htm This unit is based upon the well-known and largely used WinExecAndWait function The former WinexecAndWait function doesn't compile under Delphi 2.0 because the GetModuleUsage function is no longer supported under Win95. I have simply updated the previous code so that i.. 2011. 12. 12.
[delphi] Tracking DLL loading, attaching, detaching and unloading DLL 을 이용할 때 dll 이 로딩되는지 언로딩 되는지 알 수 있다. Library testdll; http://www.delphifaq.com/faq/delphi_windows_API/f534_0.htm The code snippet shows how your DLL can track its usage. uses Windows, // DLL_PROCESS_nnn defined in here SysUtils, Classes; procedure MyDLLProc(Reason: Integer); begin case Reason of DLL_PROCESS_ATTACH: // called when the DLL is loaded begin end; DLL_PROCESS_DETACH: // called when.. 2011. 12. 12.
[개발/delphi] RLINK 32: out of memory 델파이 RLINK32: out of memory 델파이 컴파일을 하다보면 RLINK32 에러가 발생하는 경우가 있다. 이 경우는 코드상의 에러가 아니어서 설정 변경을 통해서 에러를 수정할 수가 있다. 아래의 방법들을 시도해 보는 것으로 에러를 수정할 수가 있다. 1 리소스명을 짧게 한다. 2. dll 파일을 더 작은 리소스 수로 여러개로 나눈다. 3. 이미지 리소스를 여러개의 strips(icons, glyphs, etc)으로 결합한다. 4. 만약 icon 파일에 128x128 크기의 형식이 포함되어 있다면 이것을 제거하면 확실하게 수정된다. 2011. 12. 12.
[Delphi] IdHTTP로 세션아이디를 포함하여 요청하기 (SessionID) [Delphi] IdHTTP로 세션아이디를 포함하여 요청하기 (SessionID) 출처: 출처 : http://bloodguy.tistory.com 세션ID는 재주껏 가져오자. 쿠키에 저장되어 있으니. TWebBrowser에서 세션ID 가져오기 : http://bloodguy.tistory.com/entry/Delphi-TWebBrowser에서-세션아이디SessionID-가져오기 // URL에서 도메인명만 따냄 function GetHostNameFromURL(URL: String): String; var PosSlash: Integer; begin Result:=Trim(URL); Result:=MidStr(Result, Pos('://', Result)+3, Length(Result)); PosSla.. 2011. 12. 9.
[delphi] 브라우저 링크 프로토콜 정의하기 [delphi] 브라우저 링크 프로토콜 정의하기 출처 : http://bloodguy.tistory.com/entry/%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80-%EB%A7%81%ED%81%AC-%ED%94%84%EB%A1%9C%ED%86%A0%EC%BD%9C-%EC%A0%95%EC%9D%98%ED%95%98%EA%B8%B0 레지스트리에 등록한다. 예제는 BTP(Bloodguy Test Protocol) 을 만든다고 가정. HKEY_CLASSES_ROOT\BTP 라는 키를 만들고 '(기본값)'에 다음과 같은 value를 넣고, 'URL Protocol' 이라는 빈 문자열 값을 하나 만든다. (기본값) REG_SZ URL:BTP(Bloodguy Test Protocol) URL Pr.. 2011. 12. 9.
[개발] URLEncode Code 와 ASCII Code Chart URLEncode Code Chart The following is a chart of ascii values for 256 characters in URL-encoding form. These values can be used for URL-encoding non-standard letters and characters for display in browsers and plug-ins which support them. (The codes below are in hexadecimal format. Click here for an ascii chart with decimal values for use with ord and chr functions). For automated encoding, try K.. 2011. 12. 9.
Visual C++ / MFC로 개발한 좋은 오픈 프로젝트들 Visual C++ / MFC로 개발한 좋은 오픈 프로젝트들 출처 - CodeProject http://www.codeproject.com/KB/cpp/OpenSource_VC_MFC.aspx 외국 프로그래머 선배님들의 훌륭한 작업들.. List of Best Open Source Projects Written in VC++/MFC 7-Zip (http://sourceforge.net/projects/sevenzip/) : 7-Zip is a file archiver with a high compression ratio. The program supports 7z, ZIP, CAB, RAR, ARJ, LZH, CHM, GZIP, BZIP2, Z, TAR, CPIO, RPM and DEB formats. .. 2011. 12. 7.
[개발/VC++] Visual C++ 에서 컴파일시 LNK2019 에러에 대한 해결방법 LNK2019 에러는 포함 파일을 찾지 못할 때 발생하는 에러입니다. *.lib, *.dll, *.h, *.cpp 등입니다. 기호선언이 잘못된 경우, 즉 철자가 틀리는 경우에 발생할 수 있스습니다. 함수가 사용되었지만 매개 변수나 형식의 함수 정의가 일치하지 않을 경우에도 발생할 수 있습니다. 호출 규칙이 함수 선언과 함수 정의가 달라서 발생할 수 있습니다. 기호가 C 프로그래램으로 컴파일된 파일에 정의되어서 C++파일에서 extern "C" 한정자 없이 선언된 경우도 발생합니다. 2011. 12. 6.
[개발/VC] 다이얼로그 바탕화면에서 자석효과 구현 [개발/VC] 다이얼로그 바탕화면에서 자석효과 구현 다이얼로그의 클래스 위저드에서 OnWindowPosChanging 함수를 추가합니다. 그 다음 아래와 같이 코드를 작성합니다. void CMagnetDlg::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos) { CDialog::OnWindowPosChanging(lpwndpos); CRect rect; GetWindowRect ( &rect); int cx = GetSystemMetrics(SM_CXSCREEN); int cy = GetSystemMetrics(SM_CYSCREEN); // 바탕화면 경계에서 자석효과 if ((lpwndpos->x > 0) && (lpwndpos->x x = 0; if ((lpwndpos->.. 2011. 12. 2.
반응형