일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- iBATIS
- Android
- Spring
- Eclipse
- Struts
- tomcat
- Google Map
- jQuery
- ibsheet
- MySQL
- appspresso
- node.js
- rowspan
- Ajax
- WebLogic
- swingx
- PHP
- dock
- 전자정부프레임워크
- JDOM
- oracle
- phonegap
- GPS
- 가우스
- jsr 296
- PLSQL
- MFC
- JSON
- 선택적조인
- sencha touch
Archives
- Today
- Total
Where The Streets Have No Name
통화 현금 표시 포맷으로 숫자 포맷하기 본문
출처 : http://blog.naver.com/nixorkim/20046312663
//현금 표시 포멧으로 만들기
NUMBERFMT nFmt = { 0, 0, 3, ".", ",", 0 };
TCHAR szVal[10];
TCHAR szOut[10];
//::GetNumberFormat (NULL, NULL, szVal, &nFmt, szOut, 10);
//서비스별 요금액 보여주기
char szPrice[10]; //\12,500원 9 digit
CStatic *pStPhoto = (CStatic*)this->GetDlgItem(IDC_STARPHOTO_PRICE);
sprintf(szVal,"%d", nstarphotocnt);
::GetNumberFormat(NULL, NULL, szVal, &nFmt, szOut, 10);
sprintf(szPrice, "\\%s원", szOut);
NUMBERFMT nFmt = { 0, 0, 3, ".", ",", 0 };
TCHAR szVal[10];
TCHAR szOut[10];
//::GetNumberFormat (NULL, NULL, szVal, &nFmt, szOut, 10);
//서비스별 요금액 보여주기
char szPrice[10]; //\12,500원 9 digit
CStatic *pStPhoto = (CStatic*)this->GetDlgItem(IDC_STARPHOTO_PRICE);
sprintf(szVal,"%d", nstarphotocnt);
::GetNumberFormat(NULL, NULL, szVal, &nFmt, szOut, 10);
sprintf(szPrice, "\\%s원", szOut);