
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Java’s Object class provides a method called toString() that returns the string representation of the object on which it is called. The method signature for toString() is: public String toString
Some Webmasters prefer to use the file extension .html instead of just .htm for their Web pages. When you start a new HTML file in Visual InterDev 6, it uses
Question: What’s an interface in Java programming? Answer: Conceptually, an interface is a class that defines a set of methods with no implementation. It is analagous to a pure virtual
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.
Question: I plan to create a SQL Server 7 database containing about 40 – 70GB of data. The data will be generated by queries. How should I spend my money
Question: Is there any way to change the font sizes and/or color scheme of the alert box? Answer: Both the alert and confirm commands rely on a platform’s standard message
Question: Can you suggest a good SQL Server query/reporting tool suitable for end users who are used to using the MS Access query builder/report generator? Answer: Why not stick with
Question: My company is in the process of evaluating packages to replace our current business application. All but one of them run on a relational database architecture. The other one
Question: The goal is to watch queries for their use, nonuse, or abuse of indices (using SQL Server 6.5). One of the problems is to be sure that a given
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
Question: Is it possible to select only certain records from a table and copy those records to a new table? Answer: The easiest way to move only certain records from
Question: I am reading in an external data file using i_file = fileopen (“c:dataamt.dat”, linemode!,read!) fileread (i_file, filelines) fileclose (i_file) How would you avoid hardcoding the data file so that
Question: This is a section from a program I am writing. It goes through the first if statement fine, but when it gets to the second if statement it doesn’t
Question: I’m thinking of reimplementing a computationally intensive scientific app in Java. What fraction of native C speed do people usually see with current Java compilers? Answer: This is not
Question: I have no experience with MFC applications, and I am wondering if there is a URL that gives very basic samples of code for applications. I can’t even figure
Question: Do you know of any utilities that can convert an *.obj file back to its original code (*.cpp/*.c)? Answer: The simple answer is that there is no hope of
Question: How can I make a two-way linked list with only one pointer? Answer: If, by two-way linked list, you mean a linked list that can be traversed from either
Question: I’m converting an fsm from C to Java. The C code has a struct and one of the members contains a pointer that contains the address of a function.
Question: I know that you can execute a program from a known drive using the system command, but what if you don’t know the drive letter? I am trying to
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
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
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
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
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
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
Question: I’m working on PowerBuilder 6 under a Windows environment. I’m calling a global function in a datawindow object. This function gets called perfectly in the development environment, but it
Question: Why can’t I revoke the “update” permission from four tables in a database in the object permissions GUI? I have successfully revoked “update” from all other tables in the
Question: I’ve used your technique for getting the icon in the tray and for being notified when the user has clicked on it, but I’m having a problem getting a
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.
Question: Could you please explain, along with examples, how to use the commands GetFileTime and CompareFileTime? I read the help topics but find it hard to digest what they say.
