📄 utility.cpp
字号:
// Utility.cpp: implementation of the CUtility class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Utility.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CUtility::CUtility()
{
}
CUtility::~CUtility()
{
}
//////////////////////////////////////////////////////////////////////////////////////////////////
// 数据编码转化
//
void CUtility::UnsignedShortToCharp(unsigned short *srcstr,char *deststr)
{
UINT nStrULength=WideCharToMultiByte(
CP_ACP,0,srcstr,-1,NULL,NULL,NULL,NULL);
WideCharToMultiByte(CP_ACP,0,srcstr,-1,deststr,nStrULength,NULL,NULL);
}
void CUtility::CharpToUnsignedShort(const char *srcstr, unsigned short *deststr)
{
int nStatus=MultiByteToWideChar(CP_ACP,0,srcstr,-1,deststr,255);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -