devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Make Web Visitors Use the Front Door

When you design a Web page using frames, you expect visitors to start at the address of the frameset holder, for example, default.htm. However, people who are linking from a

Use OLE Automation to Print Access Reports

You can print canned reports in an Access database from VB in different ways. I created this routine to print any report with any criteria or filter from any database.

Find Out Who is Connected to an Access Database

If you’re creating a Jet-based multiuser database system, you’ll sometimes need to know who is currently connected to the shared database. To get this information in situations where you don’t

Implementing COM Interfaces in VB

You should not derive one user-defined COM interface from another user-defined interface when it comes to implementing COM interfaces in VB. A Visual Basic class can inherit from an interface,

Passing Arguments By Reference/Pointer in ASP

Question: I am using a COM object written in Visual C++ using MFC. One of the object methods has a signature like this:void Function(BSTR, BSTR, long*)Whenever I call this method

Adding Virtual Directories to Your Project

Question: I am importing an existing site into a Visual InterDev project. However, a key virtual directory is not being included in this import. How can I force/cajole InterDev to

Automatically Calling a Function When a Page Ends

Question: Is there any way to call a function automatically when an ASP page ends? I know about Application_OnEnd and Session_OnEnd but isn’t there any “Page_OnEnd” function or some way

Displaying Excel Information in ASP Pages

Question: How can ASP query an Excel sheet and get all the books’ names that reside in that Excel document using ADO (or any other way)? I want to display

Connecting to Databases from Web Servers

Question: In Visual InterDev I have successfully added a data connection. In the Data View I can see all my tables, fields, etc. My database resides on a SQL 7

Running Session_OnStart in the Global.asa File

Question: My Web site does not seem to be doing anything with the Session_OnStart procedure I have written. Any thoughts as to why? Answer: Many times programmers place the Global.asa

Use a Hyperlink as a Submit Button

If your page design includes attractive and colorful fonts, you may not want to use an ordinary HTML Submit button on your form. Sometimes you may want to submit the

Get a Free Grip on the Output of the Process Object

There are times when you have to use the exec(…) method of java.lang.Runtime class to launch a program. For example: public void some_method()…String[] commandArray = new String[1];commandArray[0] = “some_program”;java.lang.Runtime rt

How to Set Up the Properties Class

roperty lists are a convenient means of storing user preferences andapplication configuration information in a file.The java.util.Properties class makes managing property lists easy.It is a Hashtable intended only to store

Building a Network Service Object

bjects you build don’t always have to be related to a database entity. In fact, some of the best objects are pure service objects that know how to talk to

Managing Repetitive Jobs Without Cursors

hile lurking on the SQL List server, I happened upon a suggestion that eliminates the need for writing your own cursors to accomplish common database administration tasks. These tasks apply

Determine Server With ServerVariables

Question: We have users coming into our homepage from two different servers. I would like to differentiate what gets shown (text, links, and so forth) based on the server that

Using Integral Types With Explicit Sizes

The actual size of the built-in integral types are machine dependent (see also the Tip Standards Provide Guarantees Regarding the Sizes of Integral Types): //built-in integral types with machine-dependent sizeschar

Consistent Project Descriptions

Always set the Description property of your ActiveX projects (found in Properties) to be prefixed with your company name or initials. That way, all your internal objects and components will

Clean Up Your Objects—In the Right Order

Although Microsoft Internet Information Server (IIS) eventually removes your unused database objects (called garbage collection), poor coding can squander the server’s resources. If your Web server drags or even fails

ASP & MS Excel

Question: I can start excel on my server from an ASP script and then create and save a document. When I’m done, Excel doesn’t shutdown. I’ve tried various commands to

Creating a CWnd Class for Printing, Not Viewing

Question: After significant development time, a wonderful class derived from CWnd was created by our team to pull together text, graphics, etc. in a Paintbrush type of application. Now, we’d

VB DHTML Input Field Handling

Question: I have a DHTML form that is dynamically generated based on a user’s selection from a list box. It generates a table line for product information which includes text

Handling Session Timeouts

Question: When a user accesses an application on my site, a sessionID is generated. After the application is accessed the user leaves the machine alone until the session times out.

Resize the Browser On-the-Fly

If your Web page is formatted to look best in a certain size of window, you can try resizing the visitor’s browser using the resizeTo() method. Do this when the