Comment on COM+ RevisitedparentComments−benibela4yOr: if (SUCCEEDED(pfd->Advise(pfde, &dwCookie)) && SUCCEEDED(pfd->GetOptions(&dwFlags)) && SUCCEEDED(pfd->SetOptions(dwFlags | FOS_FORCEFILESYSTEM)) && SUCCEEDED(pfd->SetFileTypes(ARRAYSIZE(c_rgSaveTypes), c_rgSaveTypes)) && ... )−userbinator4yThe point is that all those function calls aren't necessary, nor could the majority of them ever fail. Assigning to a field in a structure doesn't fail nor result in a function call.
Comments
Or:
The point is that all those function calls aren't necessary, nor could the majority of them ever fail. Assigning to a field in a structure doesn't fail nor result in a function call.