#include "CodeTran.h"
#include <windows.h>
#include <stdlib.h>
#pragma once
class CodeTrans
{
private:
wchar_t *pWchar;
char *pChar;
public:
CodeTrans();
~CodeTrans();
wchar_t * ANSIToUnicode( const char* str );
char * UnicodeToANSI( const wchar_t *str );
};
CodeTrans::CodeTrans()
{
pWchar = NULL;
pChar =NULL;
}
CodeTrans::~CodeTrans()
{
if(pWchar != NULL)
{
free(pWchar);
}
if(pChar != NULL)
{
free(pChar);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载