what can you do with this function?

closed account (3pj6b7Xj)
void ConstructApplicationWindowAndDefineSystemCoordinatesStr(MSG,INT,UTIN,WPARAM,LPARAM,INT,INT,INT,UINT,STRING,LPCSTR,CHAR*,HWND);

I can tell you one thing, when the executive showed this to the system programmers, seconds later they all ran out the door screaming at the top of their lungs.

Just meant as a little humor.
Last edited on
Heh, while I salute the effort to have a function name which describes what the function does, 13 parameters feels awkward.
closed account (1yR4jE8b)
Is that from the Win32 API? It looks like alot of the functions I've seen in it...
Man, it has been a while, but whether this function is from the windows API, it definitely has a prototype like it.

It seems a bit awkward that some functions did try to take on multiple responsibilities. But then again, they are system API. You can factor your code anyway you choose, and provide convenience classes and functions, but the OS is not responsible for the layout of your code. It only provides the functionality. If you need better programming style, you have to wrap it up.

Such function could also be an attempt to write such wrapper code. Because, sometimes you need to create a certain parameters structure, fill it and pass it to the API, and this could be used as a generic structure filler to circumvent the hassle.
Topic archived. No new replies allowed.