본문 바로가기

Borland47

How to ignore Indy component exception while debugging in C++ Builder How to ignore Indy component exception while debugging in C++ Builder (디버깅 중에 Indy component exception이 나타나지 않게 하는 방법)C++ Builder에서 Indy component를 자주 사용하는데 디버깅 할 때마다 exception 메시지가 자주 나타나 짜증이 난다. 이럴때 안나오게 하는 방법이 있다.Tools - Debugger Options - Language Exceptions 이곳에 무시하고 싶은 exception을 추가하면 디버깅 중에 나타나지 않는다.가장 흔하고 필요없다고 생각하는 것을 추가한다면EidConnClosedGraceFully EidReadTimeout EidClosedSocket 위의 것들이 아닐까.. 2015. 2. 4.
Beeper 설정(비프음 설정) 개발을 하다가 메시지 박스나 포커스 없는 곳을 클릭할 때 비프음이 발생합니다.신경이 쓰이기도 하죠~ 이것을 설정할 수 있는 API가 있습니다. bool m_IsSystemBeeperOn = false; //현재 System의 Beeper 설정 불러오기 SystemParametersInfo(SPI_GETBEEP, 0, PVOID(&m_IsSystemBeeperOn), 0);// Beeper가 On인 경우 Off if (m_IsSystemBeeperOn == true) SystemParametersInfo(SPI_SETBEEP, 0, NULL, SPIF_SENDWININICHANGE); // 기존 System의 Beeper 설정으로 환원 SystemParametersInfo(SPI_SETBEEP, stati.. 2014. 8. 14.
[x64] [ilink64 Error] Fatal: Unable to open file 'BDERTL.A' LeadTools V18과 C++ Builder XE6를 이용해서 64bit 빌드 할 때 'BDERTL.A'를 열수 없다는 에러 메세지가 나타난다.Compiler 폴더를 검색해 봐도 그런 파일은 존재 하지 않는데 구글을 검색한 결과 아래와 같은 페이지를 발견했다.http://qc.embarcadero.com/wc/qcmain.aspx?d=114447해결책은 XE6에서 비어있는 BDERTL.dll을 제작한 후에 Lib폴더에 64bit로 빌드후 생성 된 BDERTL.dll과 BDERTL.a 파일을 넣고 빌드를 하면 문제 없이 성공한다.위의 링크에 써 있는 내용은 아래와 같다.Still in XE4 Update 1 ....Work around: Copy any .a lib to BDERTL.a or creat.. 2014. 7. 15.
Installing LEADTOOLS VCL(Visual Component Library) Installing VCLBelow is the guidance on how to install the LEADTOOLS Visual Component Library.Controls InstallationTo install controls, do the following: 1. Open Delphi/Builder. 2. Select Tools -> Option -> Environment Variables. 3. From "System variables" list search for Path then click Add Override. 4. Now add (LEAD)\Bin\CDLLVC10\Win32 in Variable value edit box. Listed below are the steps used.. 2014. 7. 15.
SetWindowPos() 함수를 이용해서 Dialog가 뒤로 사라지는 문제 수정 C++Builder로 개발중에 Windows 7 64bit에서 Print Driver setting 후에 PrintSetupDlg가 뒤로 사라지는 문제가 발생했다. 여러가지 방법을 찾아 보았지만 아래와 같은 방식으로 처리를 해서 해결을 했다.void __fastcall TForm::FormCreate(TObject *Sender) { PrinterSetupDialog->OnShow = OnPrintSetupDlgShow; } //--------------------------------------------------------------------------- void __fastcall TForm::OnPrintSetupDlgShow(TObject *Sender) { SetWindowPos(Print.. 2014. 4. 29.
STL Container 사용법(vector, map, list) 참고사이트: http://bcbjournal.org/articles/vol3/9910/Using_STL_containers.htm 예제 소스 #include #include #include #include #include #include #pragma hdrstop #include "Unit1.h" #include "WrkObjs.h" using namespace std; #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } void __fastcall TForm1::QuitButtonClick(TObject *Sender).. 2013. 1. 30.
사각형 회전후 좌표 값 구하기 사각형의 각 좌표를 seta 만큼 회전 한 후에 좌표 값을 구하는 방법 seta; 각도 pre_x, pre_y: 이전 좌표 float r = 0.01745328; // 3.141592 / 180 float radian = seta * r; float s = sinf(radian); float c = cosf(radian); float x = pre_x * c - (pre_y * s); float y = pre_x * s + (pre_y * c); 2012. 9. 10.
Inserting Images into PowerPoint 2007 http://msdn.microsoft.com/en-us/library/bb870303.aspx In this example, you create a Microsoft Office Fluent Ribbon customization that adds a button to the Insert tab in PowerPoint 2007. Clicking the button displays a dialog box so you can select an image. After you select the image, the add-in inserts the image and centers it on the current slide. To demonstrate the technique, follow these steps.. 2011. 4. 9.
The new and delete Operators with multi-dimensional arrays (다차배열) // ALLOCATE A TWO-DIMENSIONAL SPACE, INITIALIZE, AND DELETE IT. #include #include using std::cout; using std::endl; void display(long double **); void de_allocate(long double **); int m = 3; // THE NUMBER OF ROWS. int n = 5; // THE NUMBER OF COLUMNS. int main(void) { long double **data; try { // TEST FOR EXCEPTIONS. data = new long double*[m]; // STEP 1: SET UP THE ROWS. for (int j = 0; j < m; j.. 2011. 1. 18.
LIST