|
// XFormatNumberNF.h Version 1.0 - article available at www.codeproject.com
//
// Author: Hans Dietrich
// hdietrich@gmail.com
//
// License:
// This software is released into the public domain. You are free to use
// it in any way you like, except that you may not sell this source code.
//
// This software is provided "as is" with no expressed or implied warranty.
// I accept no liability for any damage or loss of business that this
// software may cause.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef XFORMATNUMBERNF_H
#define XFORMATNUMBERNF_H
class CXFormatNumberNF
{
// Construction
public:
CXFormatNumberNF();
// Attributes
public:
int FormatString(LPCTSTR lpszValue, LPTSTR lpszBuf, DWORD dwSizeBuf);
int FormatString(DWORD dwValue, LPTSTR lpszBuf, DWORD dwSizeBuf);
int FormatString(PLARGE_INTEGER lpValue, LPTSTR lpszStr, DWORD dwSize);
// Implementation
private:
NUMBERFMT m_nf;
TCHAR m_szThousandSep[20];
TCHAR m_szDecimalSep[20];
};
#endif //XFORMATNUMBERNF_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.
Recently, I have moved to Los Angeles where I am doing consulting and development work.
For consulting and custom software development, please see
www.hdsoft.org.