程序运行就直接退出了 不知道为什么?谢谢各位高人指点下啊 
我是想读取内存中数组值 并显示在编辑框中


//获取窗口进程句柄
        HWND hc = FindWindow(NULL,"QQ游戏 - 连连看角色版");
    
        //获取窗口进程ID
    DWORD pid; 
        GetWindowThreadProcessId(hc,&pid);
        
        //打开指定进程            全部权限               进程ID
    HANDLE ph = OpenProcess(PROCESS_ALL_ACCESS,false,pid);
        
    //读指定进程 内存数据
    int str[11][19];
        TCHAR str1[10];
        ZeroMemory(str1,sizeof(str1)/sizeof(char));
        TCHAR str2[256];
    ZeroMemory(str2,sizeof(str2)/sizeof(char));
    DWORD ps=0x0012A480;
        DWORD  zs;     // 进程句柄  // 基址  // 存放数据缓冲区// 要读取数据的字节数 // 实际读取的字节数
        if(ReadProcessMemory(ph,(LPCVOID)ps,(LPVOID)str,11*19,&zs))
        {   
                
                //读取棋盘数据
            for (int x = 0; x < 11; x++)
                {
                        for (int y =0; y < 19; y++)
                        {
                                
                           itoa(str[x][y],str1,16);
                                                   strcat(str2,str1);
                           strcat(str2," ");
                        }
                        strcat(str2," \r\n");
                }
                
                SetDlgItemText(hwnd,IDC_EDIT,str2);
                CloseHandle(ph);
        } 
    else 
        {
                MessageBox(hwnd,"读取失败!",NULL,MB_OK);
        }