c++ Programming Glossary: conventions
Why use prefixes on member variables in C++ classes http://stackoverflow.com/questions/1228161/why-use-prefixes-on-member-variables-in-c-classes variables in C classes A lot of C code uses syntactical conventions for marking up member variables. Common examples include m_.. applying such rules consistently. In other languages these conventions are far less widespread. I see it only occasionally in Java.. one can do without member prefixes c coding style naming conventions share improve this question You have to be careful with..
What is exactly the base pointer and stack pointer? To what do they point? http://stackoverflow.com/questions/1395591/what-is-exactly-the-base-pointer-and-stack-pointer-to-what-do-they-point by subtracting a constant offset from ebp. All x86 calling conventions define ebp as being preserved across function calls. ebp itself..
Weird MSC 8.0 error: “The value of ESP was not properly saved across a function call…” http://stackoverflow.com/questions/142644/weird-msc-8-0-error-the-value-of-esp-was-not-properly-saved-across-a-function calling convention. We have never even specified calling conventions __cdecl etc. for our functions leaving all the compiler switches.. often cause of the error see #2 . 1 Mismatched calling conventions The caller and the callee do not have a proper agreement on..
Convert inline assembly code to C++ http://stackoverflow.com/questions/16142284/convert-inline-assembly-code-to-c calling convention indicates reliance on 32bit calling conventions . In 32bit x86 stdcall means that all arguments are passed on.. be ported there is no equivalent to port to. Calling conventions that are at least partially register based as is Win64 on x64.. convention I know of neither Win64 x64 nor the UN X x86_64 conventions allow to predict both the locations and total stack memory usage..
When should you use 'friend' in C++? http://stackoverflow.com/questions/17434/when-should-you-use-friend-in-c masked typedefs or not foolproof comments or function name conventions . Onto the answer The 'friend' specifier allows the designated..
In what cases do I use malloc vs new? http://stackoverflow.com/questions/184537/in-what-cases-do-i-use-malloc-vs-new you're a C expert please let me know any rules of thumb or conventions you follow in this regard. c memory management delete malloc..
Detect GCC compile-time flags of a binary http://stackoverflow.com/questions/189350/detect-gcc-compile-time-flags-of-a-binary smartest C developers out there and they resort to naming conventions because this is generally not possible any other way the executable..
Private and Protected Members : C++ http://stackoverflow.com/questions/224966/private-and-protected-members-c members in classes I understand from best practice conventions that variables and functions which are not called outside the..
Template typedefs - What's your work around? http://stackoverflow.com/questions/26151/template-typedefs-whats-your-work-around downsides. EDIT I've amended the code to reflect Boost STL conventions as pointed out by Daniel in his comment. share improve this..
Reading from a text field in another application's window http://stackoverflow.com/questions/352236/reading-from-a-text-field-in-another-applications-window is hard to browse since Win32 API has such horrible naming conventions. Completed See my answer below for a how to in C . c gui winapi..
What's the rationale for null terminated strings? http://stackoverflow.com/questions/4418708/whats-the-rationale-for-null-terminated-strings vectors of integers and supplements general rules by a few conventions. In both BCPL and B a string literal denotes the address of..
how boost::function and boost::bind work http://stackoverflow.com/questions/527413/how-boostfunction-and-boostbind-work passing to boost bind It even works with different calling conventions i.e. member methods are __thiscall under VC but normal functions..
Compilers and argument order of evaluation in C++ http://stackoverflow.com/questions/621542/compilers-and-argument-order-of-evaluation-in-c run on multiple platforms do take into account the calling conventions to skip surprises. There is a nice article on Raymond Chen'..
Why 'this' is a pointer and not a reference? http://stackoverflow.com/questions/645994/why-this-is-a-pointer-and-not-a-reference '08 at 1 56 That only shows that it doesn't use the same conventions as other later languages. le dorfier Dec 22 '08 at 3 35 I'd..
Typedef pointers a good idea? http://stackoverflow.com/questions/750178/typedef-pointers-a-good-idea Is there any merit to this c c pointers typedef conventions share improve this question This can be appropriate when..
Advantage of switch over if-else statement http://stackoverflow.com/questions/97987/advantage-of-switch-over-if-else-statement abstracted the snippet so don't hate me for the naming conventions p numError is an error enumeration type with 0 being the non..
|