Avoid the Diamond Problem when Using Inheritance in Loops
While multiple inheritance is an extremely useful feature?escpecially in large scale software, it can also lead to a problem known as the DDD, or “Dreadful Diamond on Derivation,” or simply
While multiple inheritance is an extremely useful feature?escpecially in large scale software, it can also lead to a problem known as the DDD, or “Dreadful Diamond on Derivation,” or simply
Here are three quick ways to determine a computer’s name: Type Hostname in the Command Prompt, then press the Enter key. Press the Windows and Pause keys to bring up
If you wish to position a child form at a specific location?instead of its default location at the top left of the MDI parent form, set the child form’s StartPosition
Although it is perfectly okay to use a goto to exit a nested loop, many developers prefer not to use gotos. Another way to exit a complicated, nested block of
Did you know you can listen to any PDF instead of reading it? It’s possible with Adobe Reader 6.0+. Here’s the short cut: CTRL+SHIFT+B: This allows you to hear the
Have you ever had a problem printing lines in color from VB6 (SP4)? The following code works correctly on a PictureBox, but prints black on the Printer (HP LaserJet and
The Thread.stop() method is unsafe and thus deprecated. If the thread being stopped was modifying common data, that common data remains in an inconsistent state. A better way would be
For better handling of resource leaks, try “marking” the allocation with ancillary information: #include #include #include #include typedef void FDEL(void* p, size_t size);typedef FDEL* PFDEL;class A{ int a; static void
To prevent an IP from connecting with your server, simply put this code into your form code area and replace the IP with the one you want to prevent: Private