Tip Bank

DevX - Software Development Resource

Evaluating Database Security

Question: How easy/hard is it to hack into a database? How do they hack into them, and where can I get some basic information on database privacy and security? Answer:

DevX - Software Development Resource

Running an External Program

Question: How do you get C++ to run an outside program? How do you type this in the source code? Answer: You can invoke another executable from your programming by

DevX - Software Development Resource

Protected Inheritance Bug

Question: What is the standard rule on access specifiers associated with superclasses? Old C++ compilers would not allow protected superclasses. But, the book I’ve read about OOAD allows it. Example:

DevX - Software Development Resource

Jumping to the End of a Program

Question: I have a function halfway through a program, which should allow the user to quit the program, at the moment it just carries on to the next function call.

DevX - Software Development Resource

Opening Web Browsers for Multiple Pages

Question: I have seen a few tips regarding opening a Web browser using the Run command or using the ShellExecuteA external command. If I want to open multiple pages one

DevX - Software Development Resource

Virtual Function

Question: I’m surprised the following code doesn’t compile: class C1{public: virtual void f() { /* … */ } void f(bool) { /* … */ }};class C2 : public C1{public: void

DevX - Software Development Resource

Virtual and Non-Virtual

Question: Why would a call to a virtual function execute slower than a call to a non-virtual function? Answer: Because the call is resolved through an additional level of indirection?instead

DevX - Software Development Resource

Single Quotes in Queries

Question: When using PowerBuilder as a front end for doing SQL queries, I get the following pop-up message when I look for someone with a single quote in their name

DevX - Software Development Resource

Creating a Client E-mail List

Question: I am trying to create a client e-mail listing to go out to all our company clients. What would be the easiest way to do this? Answer: The easiest