The Latest

DevX - Software Development Resource

Functions Returning Arrays

Question: Is it possible for a function to return an array instead of a single value? Answer: No but, then again, you don’t really pass arrays as parameters, either. What

DevX - Software Development Resource

Creating a Callback Function Pointer

Question: I am using Microsoft Visual C++ 6.0 and am trying to create a callback function pointer to the public member of a class, but I keep getting the following

DevX - Software Development Resource

Linked Lists and Recursion

Question: I am using several large data structures as linked lists to process some data. Many of my helper functions use recursion. Because of the size/amount of data that I’m

DevX - Software Development Resource

C Equivalent in C++

Question: What is the C++ equivalent of the fflush(stdin) statement in C? Answer: Fortunately, although C++ offers many new ways of doing thing, it still includes everything that was in

DevX - Software Development Resource

Handling Extremely Large Integers

Question: I’m trying to write an app that handles some complex mathematical functions, but am hitting a wall in regards to the int data type. I need to store and

DevX - Software Development Resource

Determine Date Format on the Server

Question: Is there any way I can use ASP to get the date format on the server? I don’t want to return a date and then print it. I want

DevX - Software Development Resource

Using MS Office Objects From ASP Pages

Question: Is it possible to create a server-side object so that an ASP page can gain access to Microsoft Office information? I am trying to find a way to edit

DevX - Software Development Resource

ASP Scrolling Through a Resultset

Question: How can I display groups of records (for example, the first 10 records), then allow the user to click Next to display the next set of records? I have

DevX - Software Development Resource

Verify Whether a File Exists From ASP

Question: I am trying to access some PDF files in a database. I give the address of the file in the browser as an IP address. I am trying to

DevX - Software Development Resource

DHTML Options Object Generation

Question: I tried loading two frames in the browser called “TOP” and “BOTTOM”. The “BOTTOM” frame loads a JavaScript file (j1.js) and another two frames in it called “LEFT” and

DevX - Software Development Resource

Displaying Items Above ActiveX Controls

Question: I am using tags as dropdown menus at the top of my pages. But if I have an ActiveX control below my menu then the dropdown menus’ fall drops

DevX - Software Development Resource

Retain Values in a Page in ASP

Question: Is there any way to retain values in a page (text box, check box, radio, and so on) after going to some other page and coming back? I don’t

DevX - Software Development Resource

Using Form Elements in DHTML

Question: I am having a problem accessing the form elements that are inside a DIV tag. It works in Internet Explorer but not in Netscape. The alert comes in both

DevX - Software Development Resource

Nonblocking I/O

Question: Say I have 10 sockets and I want to have a thread which checks for a message from the sockets using their InputStreams. The thread will wait in the

DevX - Software Development Resource

Capturing KeyEvents

Question: How can I capture KeyEvents in a Frame that doesn’thave any TextFields or TextAreas? Answer: To enable a particular AWTEvent in a Component it suffices to add alistener for

DevX - Software Development Resource

A Simple Sort Not Working

Question: I have the following: sql=”select * from products” How do I sort or order by two columns retrieved in the “*”? Answer: You need to specify them directly in

DevX - Software Development Resource

Detect if the Submit Button Was Pressed

Question: How do I tell if the ‘submit’ button on a form has been clicked when I call the ASP page back to process the input? Answer: If you set

DevX - Software Development Resource

ASP String Functions

Question: I have a string that changes in length and has information separated by commas. For instance, it might contain something like: agfd, addc, aprev, ads, adft I need a

DevX - Software Development Resource

Get Milliseconds From Time in ASP?

Question: Can I get milliseconds from time in ASP? For example, 12:30:00.234 HH:MM:SS.fff. Answer: No, not without using a custom COM component that will return the milliseconds. But then, by

DevX - Software Development Resource

Cannot Use Server.CreateObject on Client

Question: I created an ActiveX DLL that contains a class used to hold application settings. I registered the DLL (and a subsidiary DLL) on the Web server, but when I

DevX - Software Development Resource

MySQL to MS SQL Syntax

Question: I have the following dump for MySQL and am having a problem getting it corrected for MS SQL. Can you help? Here is the dump file: # MySQL dump

DevX - Software Development Resource

Catching Exceptions

Question: Do you have to individually catch each exception that a method maythrow? Or can you just have one generalized catch?For example, can I do this?: try{ method1 //which throws

DevX - Software Development Resource

Encryption Classes

Question: Are there any standard classes for performing one-way encryption ofstrings (e.g., passwords) in Java, similar to crypt() on Unix systems? Answer: The Java core APIs do not include an

DevX - Software Development Resource

Global Variables

Question: One of the things left out of Java that we had in C++ wasglobal variables. Is there a way to use global variables in Java? Answer: Even though Java

DevX - Software Development Resource

Editing Report Details in Print Preview

Question: Is it possible to edit report details in a print preview window? For example, if the report previewed has a line in it that I wish to remove, can

DevX - Software Development Resource

List Selection Actions

Question: When someone selects one item on my list, I want an inputfield to appear next to it. How do I do this? Answer: Rather than provide you with the