Menu ▾ ▴

TaskDialog sample fails with 0x80070002 (ERROR_FILE_NOT_FOUND)

Help
2026-10-29
2026-10-31
  • Daniel Pantea

    Daniel Pantea - 2026-10-29

    Hi David,
    TaskDialog samples calls SetFooterIcon(TD_INFORMATION_ICON) and always uses FillString on it, which then fails for this example in my tests.
    Below works for me, but maybe you find better solution, thanks!

        // MAKEINTRESOURCE values, including the predefined Task Dialog icon
        // constants, are encoded integer identifiers rather than string pointers.
        if (footerIcon == nullptr || IS_INTRESOURCE(footerIcon))
        {
            m_footerIconName.Empty();
            m_tc.pszFooterIcon = footerIcon;
        }
        else
        {
            m_footerIconName = FillString(footerIcon);
            m_tc.pszFooterIcon = m_footerIconName.c_str();
        }
    
     
  • David

    David - 2026-10-31

    Hi Daniel,

    Yes there was a bug introduced in the previous update to the code in CTaskDialog::SetFooterIcon in the area you mentioned.
    That issue has been address in the latest code update.

    You can download a snapshot of the latest code from the Code section here on SourceForge.

    Best regards,
    David

     
    ❤️
    1

Log in to post a comment.