background image

#include "HZEncode.h"

<!--[if !supportEmptyParas]--> <!--[endif]-->
#ifdef _DEBUG

#define new DEBUG_NEW
#undef THIS_FILE

static char THIS_FILE[] = __FILE__;
#endif

#define UNICODE
#define _UNICODE

/////////////////////////////////////////////////////////////////////////////
// The one and only application object

<!--[if !supportEmptyParas]--> <!--[endif]-->
CWinApp theApp;

<!--[if !supportEmptyParas]--> <!--[endif]-->
using namespace std;

unsigned short* ptr;

char* pszHZ = "啊";

byte bt[] = {0xc4,0xe3,0xBA,0xC3};//“

你好 的机内码

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])

{
       int nRetCode = 0;

<!--[if !supportEmptyParas]--> <!--[endif]-->
       // initialize MFC and print and error on failure

       if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
       {

              // TODO: change error code to suit your needs
              cerr << _T("Fatal Error: MFC initialization failed") << endl;

              nRetCode = 1;
       }

       else
       {

              for (int i = 16;i <= 55; i++)
              {

                     byte Temp[3];
                     Temp[2] = 0;

                     Temp[0] = i + 0xA0;
                     for (int j = 1;j < 94;j++)

                     {