www.pudn.com > VC.zip > methord.h, change:2012-12-28,size:1360b


// methord.h: interface for the methord class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_METHORD_H__7858A136_CA0F_4711_AAED_568B1B9085F6__INCLUDED_) 
#define AFX_METHORD_H__7858A136_CA0F_4711_AAED_568B1B9085F6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class methord   
{ 
public: 
 
	static u8 u16tou8(u8 *tm,u16 data); 
	static u8 u32tou8(u8 *tm,u32 data);		 
	static u8 u8tou16(const u8 *tm,u16 *data); 
	static u8 u8tou32(const u8 *tm,u32 *data); 
	 
	static u8 strtou32(u8 *str,u32 *data); 
	static u8 strtou16(u8 *str,u16 *data); 
 
	static u8 u8tostr(u8 data, u8 *str); 
	static u8 u16tostr(u16 data,u8 *str); 
	static u8 u32tostr(u32 data,u8 *str); 
 
	static s16 strlen_1(uc8 *src,s16 maxstrlen=4096); 
	static s16 FindASCII(u8 *src,u8 ascii,s16 srclen=0x00); 
	static int autocpy(u8 *dst,const u8 *src,int dstlen=0,int srclen=0,u8 ascii=0); 
 
	static s16 gsmBytes2String(u8*pSrc, u8* pDst, s16 nSrcLength); 
	static s16 gsmString2Bytes(u8* pSrc, u8* pDst, s16 nSrcLength); 
 
	static int methord::FindCommPort(CString *serial); 
	static void StrSort(CString *StrList, int Comnum); 
	static CString GetAppPath();//获取应用程序路径 
 
	methord(); 
	virtual ~methord(); 
 
}; 
 
#endif // !defined(AFX_METHORD_H__7858A136_CA0F_4711_AAED_568B1B9085F6__INCLUDED_)