C++ Builder/함수
-
SendBuffer //UDPC++ Builder/함수 2018. 12. 7. 11:19
#SendBuffer//UDPIdUDPServer1->SendBuffer("127.0.0.1", 50000, aBuf); // ip, port, data virtual void __fastcall SendBuffer(const System::UnicodeString AHost, const System::Word APort, const Idglobal::TIdIPVersion AIPVersion, const Idglobal::TIdBytes ABuffer)/* overload */; virtual void __fastcall SendBuffer(const System::UnicodeString AHost, const System::Word APort, const Idglobal::TIdBytes ABuff..
-
ShowMessageCenterC++ Builder/함수 2018. 12. 6. 22:32
#ShowMessageCenter// 현재폼의 가운데에 시스템 메세지 띄우는 함수 코드void __fastcall ShowMessageCenter(String Msg){ static TCanvas *MsgCanvas=NULL; if(MsgCanvas==NULL) { MsgCanvas=new TCanvas; MsgCanvas->Font->Name="MS Sans Serif"; MsgCanvas->Font->Size=9; } if(Screen->ActiveForm) { MsgCanvas->Handle=GetDC(Screen->ActiveForm->Handle); TSize ts=MsgCanvas->TextExtent(Msg); if(ts.cxActiveForm->Left + (Screen->ActiveFor..
-
ToIntDefC++ Builder/함수 2018. 12. 6. 22:16
#ToIntDef //문자열로 된 숫자를 정수형(Int)로 반환 (오류시 기본값 반환) System.UnicodeString.ToIntDefUp to Parent: UnicodeStringC++int ToIntDef(int defaultValue) const; PropertiesTypeVisibilitySourceUnitParentfunctionpublicustring.hSystemUnicodeStringDescriptionConverts string to integer, returning a default value if the string is invalid.ToIntDef converts the given string to an integer value and returns the integer. ..