devxlogo

Tip Bank

Integer Size

Question: Our maximum int value is 32,768, but our minimum int value is -32,767. Why aren’t they the same? Answer: Because a short integer (2 bytes or 16 bits) can

Error When Performing Inserts on SQL Server

Question: When inserting data into a table that has an identity column that is also the key, the following error occurs: Non-Blob column in table is required to perform operation.

C programs to assembly programs

Question: How can I do a C++ program that converts simple C programs to assembly programs? Answer: This is a very complicated task. The first step would be a parser

Access Modifiers

Question: When should I make member variables protected and when should I make them private? Is it a good practice to ignore protected variables? It seems to me that most

strchr

Question: Where can I see the source code to the functionstrchr? Answer: If you purchase a compiler such as the professional edition of VC++, the source code for all run-time

First Visible List Row

Question: Is there a way to find out the first visible row in a List? Answer: The standard AWT java.awt.List class does not provide a means for determining the first

Variable Declaration

Question: I understand that Java variables can be declared public, private, or protected using a similar syntax as C/C++ where the access modifier is placed before the column of variables.

IE Does Not Support Netscape’s Layer Tag

Question: I know that Netscape supports layers in JavaScript. Is there any way to make them work in Microsoft Internet Explorer 4 or 5? Answer: Unfortunately, no. Microsoft and Netscape

Generating a Compiler Warning

Question: I am looking for a way to get the javac compiler to generate a warning message that I specify in my code when it is compiling my code. I