Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HRESULTs Returned by the Project Model

The following HRESULT values can be returned by the Visual C++ Project Model.

You can call GetErrorInfo after receiving one of these HRESULT values and get an error message that explains what went wrong.

VCPROJ_E_PROJ_RELOADED (0x80050512L)
This error indicates that any pointers to project system objects for that project are now invalid. You need to 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 will be returned if you try to add a file that is already present to a project.
VCPROJ_E_FILTER_EXISTS (0x80050501L)
This error will be 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 will be returned if some part of a path is bad. For example, trying to make a filter a child of one of its children or when an incorrect operating system path for a file is present.
VCPROJ_E_DIFF_PROJ (0x80050503L)
This error will be 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 will be 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 will be 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 will be returned if the item is in a zombie state.
VCPROJ_E_NO_TOOL (0x80050507L)
This error will be returned if a tool for a file cannot be found.
VCPROJ_E_BUILD_FAILED (0x80050508L)
This error will be returned if the build failed.
VCPROJ_E_NOT_BUILDABLE (0x80050509L)
This error will be returned if the configuration that you are trying to build cannot be built.
VCPROJ_E_NOT_FOUND (0x8005050AL)
This error will be returned if what you are looking for could not be found.
VCPROJ_E_BAD_PROJ_FILE (0x8005050BL)
This error will be returned if the project file is invalid for some reason.
VCPROJ_E_INTERNAL_ERR (0x8005050CL)
This error will be returned if something that should have worked internally failed.
VCPROJ_E_BLD_ALREADY_INIT (0x8005050DL)
This error will be returned if you try to initialize a build thread more than once.
VCPROJ_E_BLD_IN_PROG (0x8005050EL)
This error will be returned if you try to start a second build on the same config that you used previously.
VCPROJ_E_URL_INVALID (0x8005050FL)
This error will be returned if you try to add a URL to a project.
VCPROJ_E_UNSUPPORTED_PROJ_FILE (0x80050510L)
This error will be returned if you try to convert a pre-4.0 project file.
VCPROJ_E_NO_PLATFORMS (0x80050511L)
This error will be returned if you try to add a configuration when there are no platforms on the project.

See Also

Visual C++ Extensibility Object Model

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.