6 ms·
This approach made me think of MFC calls. Instead of having multiple return values you'd have a single return value and multiple out parameters. It's been year
by taylonr 14y ago
This approach made me think of MFC calls. Instead of having multiple return values you'd have a single return value and multiple out parameters.
It's been years since I've done any MFC work, but calls like:
HWND myWin = GetTopWindowTitle(region, out title, out size, out whateverElse);
Then you'd have to either assume that myWin was not an error code and just use the out parameters, or you'd explicitly check the myWin value each time.