기본 콘텐츠로 건너뛰기

10월, 2021의 게시물 표시

[C++ Builder] TryStrToFloat, TryStrToInt (문자열을 숫자형으로 변환)

          double a; int nA; UnicodeString b = "12.4"; UnicodeString c = "-"; UnicodeString d = ""; UnicodeString e = "CELL"; UnicodeString f = "NO"; UnicodeString g = NULL; if(TryStrToFloat(b, a) == true) Memo1->Lines->Add(FormatFloat("0.0", a)); if(TryStrToFloat(c, a) == true) Memo1->Lines->Add(FormatFloat("0.0", a)); else Memo1->Lines->Add("-1"); if(TryStrToInt(d, nA) == true) Memo1->Lines->Add(FormatFloat("0", nA)); else Memo1->Lines->Add("-1"); if(TryStrToInt(e, nA) == true) Memo1->Lines->Add(FormatFloat("0", nA)); else Memo1->Lines->Add("-1"); if(TryStrToInt(f, nA) == true) Memo1->Lines->Add(FormatFloat("0", nA)); else Memo1->Lines->Add("-1"); if(TryStrToInt(g, nA) == true) Memo1->Lines->Add(FormatFloat("0", nA)); else Memo1->Lines->Add("-1"); ==> ...

C++ Builder - cannot open project file (unable to load project)

  cbproj 파일에서 asset/ 부분을 찾아서 지워주면 됨. remove below lines. <DeployFile Configuration="Debug" Class="UWP_CppLogo44">                     <Platform Name="Win32">                         <RemoteDir>Assets\</RemoteDir>                         <RemoteName>Logo44x44.png</RemoteName>                         <Overwrite>true</Overwrite>                     </Platform>    ...