⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utility.cpp

📁 WinCE下实现的罗技usb摄像头驱动程序 镜像启动後插入摄像头并输入驱动dll名称进行加载 附带测试程序
💻 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 + -