• 内存初始化问题


    INT* pData2 = new INT[nPixelCount];
    memset(pData2, 0, sizeof(INT)*nPixelCount);
    memcpy(pData2, pData, sizeof(INT)*nPixelCount);

    -------------------------------------------------------------------------

    WCHAR* z_pDriveStr = new WCHAR[z_szAllDriveStr + sizeof(_T(" "))];

    if(NULL == z_pDriveStr)
    {
    goto _RESULT;
    }

    ZeroMemory(z_pDriveStr, z_szAllDriveStr + sizeof(_T(" ")));

    -------------------------------------------------------------------

    typedef struct _itemData
    {
    HTREEITEM hItem;
    CString strPath;
    CString ItemName;
    CString UpTime;;
    ULONGLONG Size;
    DWORD CheckState;
    _itemData()
    {
    hItem = NULL;
    strPath = _T("");
    ItemName = _T("");
    UpTime = _T("");
    Size = 0;
    CheckState = DUICHECKBOX_UNCHECKED;
    }
    }*ITEM_DATAPTR,ITEM_DATA;

  • 相关阅读:
    linux 文件类型 文件权限
    微信公众号支付
    struts2 详解
    git 命令行操作
    javascript 闭包
    SVN 基本操作
    javascript 函数 方法
    git
    javascript变量 数组 对象
    Intellij调试debug
  • 原文地址:https://www.cnblogs.com/whwywzhj/p/7977147.html
Copyright © 2020-2023  润新知