Exemplo n.º 1
0
INXString csPrintTimeStamp( const DBTIMESTAMP &ts )
{
	char buff[100];
	sprintf_s(buff, 100, "%4d-%2d-%2d %2d:%2d:%2d:%3d", 
		ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second, ts.fraction/1000000 );

	return INXString(buff);
}
Exemplo n.º 2
0
INXString intToString(const int val)
{
	char buff[BUFFSIZE];

	_itoa_s( val, buff, BUFFSIZE, RADIX);
		
	return	INXString(buff);

} 
Exemplo n.º 3
0
void parseSodlWidgetData( const INXString &fileLine, INXString &widgetTag, INXString &targetFileName )
{

	// A GUI tag is preceded by %%%_ which needs to be removed from the GUI file
	widgetTag = fileLine;
	widgetTag.Delete(0, 4);
	// Now that the %%%_ has gone, store value for target file name also.
	targetFileName = widgetTag;

	// where is space between widget tag and target file name
	int posnOfSeparatorSpace = widgetTag.Find(INXString(" "));

	// get the characters of the widget tag (ie up to, not including, the space).
	widgetTag = widgetTag.Left(posnOfSeparatorSpace);

	// Now get the target file name.

	int length = targetFileName.GetLength();
	targetFileName = targetFileName.Right(length-posnOfSeparatorSpace-1);

	return;

}
Exemplo n.º 4
0
INXString CPathDialog::GetPathName()
{
	return INXString(m_szPathName);
}