char* VixDiskLib_GetErrorText(VixError vixErrorCode, const char* locale);
This function returns the description for a VixDiskLib error code. The returned value must be unallocated using VixDiskLib_FreeErrorText().
char* msg = VixDiskLib_GetErrorText(errCode, NULL); cout << msg << endl; VixDiskLib_FreeErrorText(msg);