The Latest

DevX

Set Browser Window As Parent Of Modal Dialog

Sometimes, it is useful for an applet to launch a modal dialog whose parent is the browser window containing the applet. This is so when we’d like to get some

DevX

Hit Counter Servlet

Sometimes, it is extremely useful to know the number of times a Web page is hit. This is especially so if a web site depends on usage statistics in order

DevX

Declaring Global Variables in Java

If you are coming from C or C++ background, you must miss declaring Global variables in Java. You can get the same functionality in Java by declaring a class and

DevX

Using Numbers in SQL Text

Question: Here is the code I am using to do a query from an Access 97 database: Query = “SELECT * FROM DiamondList WHERE (ProductNumber = ‘” & tempProduct &

DevX

Display Currency Information Correctly

Question: I am writing an online order form in ASP. How can I restrict the value of vartax to a two decimal digit (round up to two decimal points)? Most

DevX

XML in ASP vs a Java Servlet

Question: I am building a Web application using ASP and XML. My database calls are directed to a server with a Java servlet over HTTP. It works fine except when

DevX

Direct Response to Another Frame on a Page

Question: I have a page broken into two frames. Frame A has a form. I would like the response from the form directed to Frame B. Right now, my response

DevX

Sending Plain Text Via ASP

Question: I wrote simple ASP code that reads a TXT file and sends it to the browser. I change the Response.Header to plain/text. Internet Explorer 4 displays the text file

DevX

Let Your Text Throw A Shadow

It is very easy to add a shadowy effect to drawn text in Java. All we have to do is to pick a darker color for the shadow and draw

DevX

Generate a Relative Path

Sometimes in an application you will have a “home” directory associated with the application, and then some files associated with that home directory. To have the files in an independent

DevX

Test Both Strings and DOM

Browsers Targeted: Internet Explorer 3+ It used to be a truism that manipulating strings was always much slower in DHTML than working directly with the Document Object Model (DOM), but

DevX

Win NT / Get UserGroups Permissions in VB

Question: I would like to get the permissions for the users of my app. I have setup groups for users with the appropriate permisions. Now all I want to do

DevX

Static Char THIS_FILE[]=__FILE__

Question: When I learned VC++, I found a bizarre statement inevery .cpp produced by AppWizard: “static char THIS_FILE[]=__FILE__;” Why does AppWizard redefine THIS_FILE?I find that THIS_FILE is just defined as__FILE__

DevX

Using Lockf with Seed Files

Question: It’s been years since my paws had to pound out a solution in C, so I’m a bit rusty and would like a second opinion.. or third… or fourth.

DevX

Pointers to Vectors

Question: How do you create an array of pointers to vectors?The different vectors will, eventually, have different lengths. Answer: You declare an array of pointers to vector like this: std::vector

DevX

Finding Cursor Position in TextBox

Question: How can I find the current cursor position in text box? Answer: You can use the SelStart property of the TextBox to indicate where the cursor is in the

DevX

ASCII Values

Question: How do I change an ASCII value to a letter in C++? Answer: You can directly assign the ASCII vlaues to a variables of type char.The decimal value is

DevX

Problems with Getc and Scanf

Question: I want to make a menu, where you can select from 1-4. By pressing one of these keys you should get into a subprogram. Now I have to press

DevX

Creating Visual Basic DLLs

Question: Is it possible to create DLLs in Visual Basic? If so, how? For example, I want a DLL with a function that can accept 2 integer arguments and returns

DevX

Changing E-mail Addresses in Bulk

Question: How can I define a second SMTP e-mail address, specify that the new e-mail address be the reply address, and retain the old address easily for many (>1000) users?

DevX

Selling the Decision Makers on XML

Question: I am starting to see the benefits of using XML and XSL in Web site development, but my challenge is convincing the decision makers. Their usual responses are: “Show

DevX

Find Text Programmatically With textRange

Browsers Targeted: Internet Explorer 4+ You can find a string of text within a document programmatically using the textRange object, which handles most of the internal string manipulation capabilities in

DevX

Using XSLT to Transform Flat Data Into a Hierarchy

Question: I have a limited understanding of XSL (Extensible Stylesheet Language) and have been trying to figure out how to write an XSL document that will transform a highly de-normalized

DevX

Database Performance Degradation

Question: We are running Informix On-Line Database Engine 7.23 on an HP UX 11.0 machine with 4 CPUs.The database is connected through a middle-tier, which is ENTERA Application Server running

DevX

Fix VID Connections on NT Server

Users of Visual InterDev sometimes report getting an error message when they try to create a new project. The error claims that there is no Web named “”. This can

DevX

INFORMATION_SCHEMA: A Map to Your Database

f you’ve spent any time at all working with databases, you know that the time comes when you scratch your head and ask, “Now what was the name of that