
Default Properties tend to hide programming mistakes
Visual Basic lets you create a default property or method by simply selecting the “(Default)” item in the combo box that appear if you click the Advanced button in the

Visual Basic lets you create a default property or method by simply selecting the “(Default)” item in the combo box that appear if you click the Advanced button in the

Writing code from scratch, without any prior design or plan, is a very bad programming practice. However, the opposite, namely over-engineering, can be just as harmful. In essence, over engineering

typedef names can hide intricate syntactic constructs such as pointers to functions and template instances. However, many novices simply don’t know how to declare a typedef, or worse yet Related

The terms “deep copy” and “shallow copy” refer to the way objects are copied, for example, during the invocation of a copy constructor or assignment operator. In a deep copy

Although the syntax of pointers to members may seem a bit confusing at first, it is consistent and resembles the form of ordinary pointers, with the addition of the class

Although pointers to members behave very much like ordinary pointers, behind the scenes, they are not necessarily represented as pointers. In fact, a single pointer to member usually consists of

Pointers to member functions consists of the member function’s return type, the class name followed by ::, the pointer’s name, and the function’s parameter list. For example, a pointer to

Question: What exactly returns a C++ function if it returns an object by a reference like: Person& GetNextPerson(); Please explain at assembly level, if possible. Answer: Assembly speaking, such a

Question: In my ASP page, I open an ODBC connection with: Set Conn = Server.CreateObject(“ADODB.Connection”)Conn.CommandTimeout = 600Conn.open “Database_name”,”Username”,”password”. How can I avoid hardcoding the password in the ASP source? Answer:

Question: What does this error message mean? Microsoft OLE DB Provider for ODBC Drivers error ‘80004005’ [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /SampleProject/default.asp,

Question: I am trying to overload the istream operator >> to work with type “bool”. From my point of view the code looks okay, except the VC++ 6.0 compiler tells

Question: Is there a C++ compiler that I can use to go cross-platform with development?I need to develop the same DLLs for AS400, Sun, and Windows. Answer: I’m not sure

Question: I am trying to decide between purchasing Borland’s Delphi or C++Builder. Can the VCL code written to work in Delphi also work in C++Builder (latest versions for both)? Answer:

Question: Why isn’t C commenting style preferred in C++? C commenting style definitely looks neater and more readable than the C++ commenting style. Answer: /* comments in C++ are just

Question: Normally, you access an array by the number of the element you want. Is it possible, in C++, to access an element by the value and return the number?

Question: How can I display the date and time a file was uploaded to my Web server using ASP? Answer: If you can access the file from an ASP page,

Question: We have Internet Information Server (IIS) 4.0 running Active Server Pages (ASP) with a Visual Basic 6.0 DLL serving data content to the ASP pages. The problem lies when

Question: How can I provide the user with a combo box and based on his selection populate the data in a text box? The data has to come from a

Question: I am confused regarding the Application_OnStart and Session_OnStart events in the global.asa file. What I feel is that the application_onstart event is triggered the very first time the application

Question: How do I connect to an Access database that resides on a network server other than the Web server? My goal is to query the Access database and display

Question: Is it possible to have a postfix version of the ! operator? Answer: No, you cannot alter the associativity, ordering and position of built-in operators when you create an

Question: Can I use Windows API calls in ASP? If so, do I have to declare functions? Answer: Unfortunately, at this time you cannot call API functions from ASP. The

Question: I’m using Microsoft SQL Server 6.5, Active Server Pages (ASP), and ActiveX Data Objects (ADO). When I retrieve a string with a value of “New York” from the table

Question: I get an “Access violation at address…” error, when I run my program. An error occurs on line “scanf(…)” but I can’t figure out what is wrong. Answer: In

Question: Is it possible to overload the ‘subscripting operator’ [] so it will take char * as the index, similar to an array? For example: I want to write a

Question: Using even the most basic default constructor, such as ” mapm; ” , causes a debug error creating huge compiler warnings in Visual C++ and MS Visual Studio 6.0.

Question: Are there any functions/libraries that can perform the Unchecked_Conversion function in Ada? We are writing a program that will read a bitstream. Upon determining the type, we want to

Question: I am a programmer beginning to learn C++. I wrote this chunk of code: /////////////////////////////////////////////////////////////// Get to do some pointer arithmetic!/////////////////////////////////////////////////////////////#include #include const char NL = ‘ ‘;const char

Internet Information Server includes a component that helps you determine the capabilities of a browser before you send code that may not be supported. The list of capabilities is stored

In JavaScript, the apostrophe (‘) is a string delimiter. That is, it marks the beginning or end of a text string. If you include an apostrophe inside a string, the