![](https://www.devx.com/wp-content/uploads/2022/02/thumbnail.jpg)
Beware of CRect, CSize, and CPoint Default Constructors
CRect, Csize, and CPoint classes all have default constructors. It would follow that they should initialize all members to zero, but they don’t! Because of this, the following function has
CRect, Csize, and CPoint classes all have default constructors. It would follow that they should initialize all members to zero, but they don’t! Because of this, the following function has
Normally, the Right() Function VB returns only the Length specified from the End. If you want to extract the Right portion from any index of the String you have to
Sometimes, while performing String operations, you may want to extract part of the string from the main string–from the StartPosition to the EndPosition specified. The problem with the Mid() is
Where NOT to use “_”:1. SQL stringsWhy? Because, during debugging, you may have to modify a SQL string because you need to add a field, or remove a field, correct
Instead of working with text as strings and using the mid, left, and right functions, it’s better to convert the string to an ANSI bytearray. This can be done with
Static blocks or static initializers don’t exist within a method body.The static block code executes only once when the class is loaded. The static block is mainly used to load
The following are the http properties for the HttpURLConnection:1) http.proxyHost (default: ) – defines the Proxy through which the request should be routed. 2) http.proxyPort (default: 80 if http.proxyHost specified)-
A common operation in many applications requires you to concatenate a list of objects (usually strings) and separate them by commas, or some other character for display (the opposite of
Stack trace is a collection of methods and objects that lists from the origin of the exception to the point where the nested call begins. class StackTrace{ StackTrace() { divideByzero();