Sdílet prostřednictvím


HRESULTs That Are Returned by the Project Model

The Visual C++ Project Model can return the following HRESULT values.

HRESULT Values

  • VCPROJ_E_PROJ_RELOADED (0x80050512L)
    This error indicates that any pointers to project system objects for that project are now invalid. You must reacquire all pointers starting with the project object. This error occurs when the project file is reloaded as a result of checking it out from a source code control program.

  • VCPROJ_E_FILE_EXISTS (0x80050500L)
    This error is returned if you try to add a file that is already present to a project.

  • VCPROJ_E_FILTER_EXISTS (0x80050501L)
    This error is returned if you try to add a filter to a project that already has a filter of that name at that level.

  • VCPROJ_E_BAD_PATH (0x80050502L)
    This error is returned if some part of a path is bad. For example, you may be trying to make a filter a child of one of its children or an incorrect operating system path for a file may be present.

  • VCPROJ_E_DIFF_PROJ (0x80050503L)
    This error is returned if you try to set the parent of a file or filter to something not present in the same project.

  • VCPROJ_E_BAD_PARENT (0x80050504L)
    This error is returned if you try to set the parent of a file or filter to something other than a project, filter, or another file.

  • VCPROJ_E_NULL_PATH (0x80050505L)
    This error is returned if you try to set the parent of a file or filter to NULL or to another file.

  • VCPROJ_E_ZOMBIE (0x80050506L)
    This error is returned if the item is in an inactive state.

  • VCPROJ_E_NO_TOOL (0x80050507L)
    This error is returned if a tool for a file cannot be found.

  • VCPROJ_E_BUILD_FAILED (0x80050508L)
    This error is returned if the build failed.

  • VCPROJ_E_NOT_BUILDABLE (0x80050509L)
    This error is returned if the configuration that you are trying to build cannot be built.

  • VCPROJ_E_NOT_FOUND (0x8005050AL)
    This error is returned if what you are looking for could not be found.

  • VCPROJ_E_BAD_PROJ_FILE (0x8005050BL)
    This error is returned if the project file is invalid.

  • VCPROJ_E_INTERNAL_ERR (0x8005050CL)
    This error is returned if something that should have worked internally failed.

  • VCPROJ_E_BLD_ALREADY_INIT (0x8005050DL)
    This error is returned if you try to initialize a build thread more than once.

  • VCPROJ_E_BLD_IN_PROG (0x8005050EL)
    This error is returned if you try to start a second build on the same config that you used previously.

  • VCPROJ_E_URL_INVALID (0x8005050FL)
    This error is returned if you try to add a URL to a project.

  • VCPROJ_E_UNSUPPORTED_PROJ_FILE (0x80050510L)
    This error is returned if you try to convert a pre-4.0 project file.

  • VCPROJ_E_NO_PLATFORMS (0x80050511L)
    This error is returned if you try to add a configuration when there are no platforms on the project.

See Also

Other Resources

Visual C++ Extensibility Object Model