Hello,
I'm using Code::Blocks for quite a long time and everything is fine, but there is one thing that's annoying me and I could not find a way to solve it:
the calltips.
Well, they work and show me the argument types and return value type, but it would be much better if they would also show the intern variable names.
Example MessageBoxA():
Code::Blocks Calltip:
WINUSERAPI int WINAPI MessageBoxA(HWND, LPCSTR, LPCSTR, UINT)
Visual C++ Express 2010 Calltip:
int MessageBoxA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType)
The VC++ calltip helps me a lot more, because after reading it I know that the first string is the text and the second one is the caption. The Code::Blocks calltip only tells me the type of the variables but I still don't know what they are used for in the function.
Sure, after some time you know that CreateWindow() takes the dimensions in the order left, top, width, height, but it's a bit annoying when you need to look up the function parameters you don't know in the internet (msdn etc...)
This is because the calltips function only scans for the prototype in the header file where only the variable type is noted, but not the name. When I write down the following prototype for my own function, save the document and the look at the calltip, it shows me the full prototype with variable names.
bool test(HWND hWnd, LPCSTR lpCaption);
In the VC++ headers the variable names are written down in the prototypes.
So my question is: How can i make C::B look through the whole winuser.h and take the real function for the calltip, not the prototype? Or are there any alternative headers where the variable names are written down in the prototypes?
Just copying the VC++ headers into my include directory works for the calltips, but compiling a project raises like 200 Errors (of course). Would using another compiler help?
Thanks for any answer.
Edit:
Ok, i've testwise created a new project and chosen the VC++ Compiler. Now the calltips are better, but i don't like the VC++ compiler at all because the errors it gives are very bad in my opinion. Are there any other possibilities to do that? Can i change the include directory the calltip addon / function uses?