

#include "Common.h"
#include <iostream> 
#include <stdio.h>
using namespace std;
void ShowData(unsigned char *pData, unsigned long ulDataLen)
{
	cout <<" Length of data to be showed is: "<< dec<<ulDataLen<<endl;
	if(pData == NULL)
	{
		cout << "...Data to be showed is NULL!" <<endl;
		return ;
	}
	else
	{
		for(register unsigned long i=0;i<ulDataLen;i++)
		{
			if(i%16==0)
			{
				cout << endl;
			}
//			cout << cout.width(3) << hex << (int)pData[i] << " ";
			printf("%03x  ",(int)pData[i]);			
		}//for
		cout << endl;
	}//else
}
