Click here to Skip to main content
15,885,141 members
Articles / Desktop Programming / MFC

Float and datetime to Vietnamese textual

Rate me:
Please Sign up or sign in to vote.
4.40/5 (6 votes)
4 Aug 2002CPOL1 min read 65.7K   921   10  
A DLL to convert Float and datetime to Vietnamese textual string
/////////////////////////////////////////////////////////////////////////////
// SonJFalconNumE.cpp
//
// Date:        Monday, May 14, 2002
// Author:      Nguyen Luong Son
//
// Description: A class to generate English textual 
//				description of interger
//
// CopyRight(c) Nguyen Luong Son FVL 2002
// Email:		nlson@fujitsu.com.vn						
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "SonJFancolNumE.h"
extern "C" 
{
#include "NumWord.h"
}


#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSonJFancolNumE::CSonJFancolNumE()
{

}

CSonJFancolNumE::~CSonJFancolNumE()
{

}

char * CSonJFancolNumE::CardinalE(char *numstr, char *g_num)
{
	unsigned long ul=0;
	char *x;
	dropZeros(g_num,numstr);
	ul = _tcstoul(g_num,&x,10);
	getNumCardinal(g_num,ul,FALSE,FALSE);
	return g_num;
}

char * CSonJFancolNumE::OrdinalE(char *numstr, char *g_num)
{
	unsigned long ul=0;
	char *x;
	dropZeros(g_num,numstr);
	ul = _tcstoul(g_num,&x,10);
	getNumOrdinal(g_num,ul,FALSE,TRUE);
	return g_num;
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions