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

List NT Users on Domain

Question: How do I list all the users on an NT domain with Visual Basic? Answer: The following code should get you started. Note that you need to add good

Server Folders

Question: Is there a way to get a list of folders for a network drive passing in the server name(for example, \NetDrive). I tried using Dir(“\NetDrive”,vbDirectory) but received only an

Cannot load control SSTab1; license not found.

Question: I’ve tried to reinstall VB5, and I’ve installed Service Pack 3, but every time I try to use the Tabbed Dialogue control (TABCTL32.OCX), I get this message in the

Random File Access

Question: I am trying to read from a text file using FileInputStream. Is there a way that I can go directly to the middle of the file and read from

Array Length

Question: How do I know the size of the array returned by File.list() so I don’t get the message ArrayIndexOutOfBoundsException when printing the local directory content in the screen? Answer:

Reading Files with FTP

Question: I want to create an applcation that reads a file from a host on my LAN. The file must be read by FTP. How do I do this? Answer:

Extracting Integers From Text file

Question: How do I read a series of integers from an ASCII text file? The file contains a sequence of numbers like 110 120 130 140 … I tried to

Parameters for NT Services

Question: I have written a service that accepts some parameters. How do I set up the service to send those parameters to the service when it starts? Answer: Since services

WIN NT User ID

Question: Do you know where to locate the Windows NT user ID so that I can add the user to the Exchange Server? Answer: The following code works just fine:

OLEAUT32 and Y2K

Question: I have heard that the two-year date cutoff for oleaut32.dll is user-definable. By this I mean that you can set oleaut32 to recognize “80” as 2080 instead of 1980.

JFrame Exit Button

Question: Is it possible to remove the close button from a JFrame or at least disable it? Answer: It is possible to disable the function of the close button on

Forcing a function to be non-inline

Question: Is there a way to force a function not to be inline?that is, to define the body of a function in a header file, but require that the compiler

Floating point accuracy

Question: When I do the following, double answer = 121 * .1;System.out.println(“Answer: ” + answer); I get, Answer: 12.100000000000001 What’s going on? Answer: Almost every computer architecture represents numbers in

Repositioning Viewable Text in TextArea

Question: Can I make the text in a TextArea scroll to a given line? For example, I have 100 lines of text in a TextArea with 20 viewable rows. Can

UDP Clients

Question: I would like to create an application in Java that communicates with a UDP connection. How do you specify the connection as UDP rather than TCP? Answer: To write

Unix select Equivalent

Question: Is there any Java facility like the Unix select() system call that will wait until there is something to read from a file descriptor before the programmer does the

StringTokenizer: Multiple Delimiter Characters

Question: I am writing a text search applet that searches through a text file loaded from the server. I am using StringTokenizer to isolate the individual words. The problem is

Comparing Strings

Question: I have defined a string variable using the following command: #define latinWord 64 char word[latinWord]; I want to use an If statment to see if the variable “word” is

Set a Counter Field

Question: Is there an easy way to increase certain fields in tables working as a counter from a third table in a master/detail form? For example: Order Table Item Table

Cout colors

Question: What can I do to make cout output text appear in different colors? I’ve looked in the iomanip.h file and didn’t see anything, and the textcolor() function in conio.h

NT remote execute

Question: How do I execute a batch file on an NT machine remotely from another Windows machine? Answer: You have a couple of choices, all from the NT Server Resource

Modifying File Timestamp

Question: Is there any way to change a file’s last modification time from Java? Answer: It is not possible to alter the time of last modification in Java version before

Loading automaticaly

Question: When I put my CD into my computer, it should start the programs automatically, but it don’t. I have to go to PROGRAMS to make it come up. Could

Foxpro 2.6 for DOS

Question: I know I’m a bit behind, but I would like to know how to create C programs for use in Foxpro for DOS. I have Foxpro 2.6 with LCK,

Preview in VFP

Question: I am going to give a preview of a report for a user, but a small window with a printer icon shows on the top. I don’t want the

FoxPro vs. Access

Question: I’m planning on using Visual Basic as a front end, but cannot decide on Access or FoxPro as the back end. Any big differences between the two? Answer: I

Java?

Question: I am looking for some way for ppl to sort info that I have in a table on my page. I have been told many many tiems that I

SQL and object reference in Fox Pro

Question: How can I can reference the value of an object to use in a select statement? My statment is being used in a Visual Fox Pro application, andso far

Get Data with GetString

DO recordsets have a handy little method called GetString that they inherited from RDO’s GetClipString. GetString returns the contents of a recordset into a formatted string. Here are three useful

Writing UDP Clients and Servers

o write UDP clients and servers, you have to use the DatagramSocket class. UDP is a connectionless protocol, so a UDP server doesn’t have to perform an accept() operation the