读两个字节?是UNICODE码吗?
你看看ucData这个里面是什么

解决方案 »

  1.   

    if(CString(ucData)=="(") 
    =>
    if(CString(ucData).trim()=="(") 
      

  2.   

     for(j=0;j <=8;j++) 
    ucData[j]='\0'
    清空数组,为CString用的,是不是这产生的空格?
      

  3.   

    不是,是你ReadProcessMemory(hProcess,(LPVOID)dwTiLiAdd ,&ucData,2,NULL); 
    读了两个字节,可能第一个字节是个空格吧
      

  4.   

    错误D:\新建文件夹\1\1Dlg.cpp(138) : error C2039: 'trim' : is not a member of 'CString'
      

  5.   

    CString 类里只有TrimLeft()和TrimRight()
      

  6.   

    换left后D:\新建文件夹\1\1Dlg.cpp(138) : error C2120: 'void' illegal with all types
      

  7.   

    用Right(1)将“(”取出来比较吧
      

  8.   

    http://download.csdn.net/source/472936
    改变其他进程内存变量值