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

Importing JPEG graphics during run-time.

Question: How do I import a JPEG image into an application during run-time? Answer: The Image and Picture Box controls in VB5 can display JPEG images. Use the LoadPicture function

Checking to see if a MDI Form is open

Question: I have an MDI application; when I Unload one form I want to check to see if another form is open and if it is run some code that

Cancelling Database Operations In Delphi

Question: We need to include the capability to abort queries in our Delphi apps that are running under BDE connecting to remote Oracle databases. Occasionally, some queries take a long

Creating a table using code

Question: Hi,Each time l try to create a table using code-not the database explorer, i get an error message:access violation at address 0042f540 read of address 7466654c.Whats the problem, how

Calling a Form

Question: How, in a database application, to use a table for selection byusers to call a certain form. For example, I could have a field with thename of the table

Year 2000 Compliance

Question: Is Visual Basic Year 2000 compliant? Answer: All versions of Visual Basic support four digit dates. However, it is up to the programmer to support four digit dates. This

Retrieving a Drive’s Serial Number

Question: I want to get the serial number from my hard drive and my floppy disk drive. How can I do this? Answer: The GetVolumeInformation API call is used to

Crystal Reports 4.5 Can’t Find Report File

Question: When I install my application on another machine other than my own, my application cannot find the report (.RPT) file I want to use. What could be the problem?

(file)listview

Question: How can I show the tables in an Interbase database in listview or filelist? (like the database explorer) Answer: The only way to do that is as follows:1) Create

Reading Bitmap Files

Question: I need to read and analyze the *.bmp file. How I can do it without PictureBox? Answer: In order to open the file, you need to use the Open

window.open() method

Question: HI! I hope you can help me. I’m opening a window with the window.open() method, and for the life of me, I can’t get it to be the size

Eliminating the Enter Key Beep

Question: I hear a “beep” when I press the ENTER key in a text box. How can I disable it? Answer: This is a common problem with the TextBox control.

Wrapper Class

Question: In VB4, how do I create a wrapper class for a textbox?I want to be able to add properties to a textbox. Answer: There are many approaches you can

Picking coordinates outside your window(s)

Question: How do I make my program respond to “mousedown” outside my form? For instance: How would I get my program to tell me the pixel coordinants of my cursor

256 to 16 bit color

Question: I need change 256 color to 16 bit color in w95… and i dont know it… Thx! Answer: Right-Click on you Desktop and select “Properties”. From the Settings tab,

WebTV

Question: I am considering using WebTV as a platform to deliver our on-line training courses. Is ActiveX compatible? Answer: WebTV is currently not ActiveX compatible. The latest releases of WebTV

Creating Date-based Filenames

Question: I am using Excel 97 to create macros. I would like to have my macro “save as” and automaticaly create a filename partially from the current date.for example today

Access violation occurred

Question: I created a setup program with the Setup Wizard. I try to install my program on another computer, and the message following appears: C:windowssystemmsvcrt40.dllAn access violation occurred while copying

Building Web Pages with VB

Question: Can I make web pages with VB5? Answer: That is a vague question, but the short answer is yes. Visual Basic can, as a simple solution, create text output

Creating Connection to Internet

Question: I am writing a program that uses the Internet. So far, it works but I need to make sure that the connection is working. How can I make my

The Best Way to Manipulate Strings in C++

You should use the String class to avoid common problems when manipulating strings in C++. The following approach will work, but it needs a lot more code to make it

Convert a Double into an Int

There are many things you can do to convert a float to an int depending upon what results you expect. If you want to use the built-in language conversions, you

Send Output to Printer

How do I send the output of my program to the standardprinter installed in Win95 or NT? Is it possible using the

Replicating the END command in C++

Suppose I have one function that calls about five or so subfunctions. In one of the subfunctions, I have an if statement: that if a=0, go on to the rest

Helping the Java Garbage Collector

When you create an object in Java, such as in the following code: Button b = new Button(); Java creates a new Button object in memory and sets the value

Include Test Code in Your Classes

It is important for developers to test code that they write to insurethat they are meeting the specifications for their application. Oftentest code is built in a separate program which

Use Java Object Serialization Instead of a Small Database

Some applications must keep small amounts of information between thetimes they are run. For example a personal calendar or personalinformation system, will store information after each session. Insteadof using a

Allow the Java Compiler to Remove Debug Code

The Java compiler will optimize your application by removing code thatcan never be executed. If you include a class in your application suchas the following: public class Debug{ public static

Increase Code Reusability

Instead of exposing fields of a Java class, such as in thiscode: public class Person{ public String firstName; public String lastName;} use private fields and provide access to the information

Create a Single Instance of an Object

There are situations when you need to insure that only a single instanceof an object is created in a program. Examples of this include aconnection to a database system, a