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

DevX - Software Development Resource

Setting icon image for dialogs in java

Question: How can we set icon images for the dialogs? Answer: There is currently (as of Java 1.1 and 1.2beta3) no way to set icon images for dialogs. On most

DevX - Software Development Resource

Byte to string conversion

Question: A variable retrieves its contents in the byte form, since I require to convert into the string format . Which is the method used in java or rather how

DevX - Software Development Resource

Garbage collection process

Question: If i have a code like this in the while loop while (true){ java.util.date ldt_date = new java.util.Date() …} Will the ldt_date variable be initialized with new location in

DevX - Software Development Resource

Java Pausing Abilities

Question: I want to make my Java program pause for a specified amount of time, but I don’t want to use a threading implementation. How can I do this? Answer:

DevX - Software Development Resource

ASCII Value Conversions

Question: How can I convert an integer ascii representationof a number to its character equivalent in astring form. For example A= 72 What procedure will take in int 72 and

DevX - Software Development Resource

Submitting a form with extra fields

Question: I have a form that has three popup menus on it (among other things), and a hidden text box. A value is placed in the hidden text field based

DevX - Software Development Resource

Avoid Exit Sub and Exit Function

It is bad programming practice to exit a subroutine or function at any point other than its end. If you want to bail out of a routine, and do not

DevX - Software Development Resource

Make Sure You are Connected to the Right Database

When issuing SQL statements against SQL Server, consider fully equating all of your table or procedure names to include the database name, especially if you are using an existing data

DevX - Software Development Resource

Remote access server

Question: We have installed a Windows NT 4.0 server with remote access server service installed. I am able to connect to the NT server from home using a dial-up connection

DevX - Software Development Resource

String formatting

Question: Is there a function that will format a string for number or, say, $$ display? For example: format 1000000 to 1,000,000? Answer: No, the C standard has no such

DevX - Software Development Resource

C++ equivilant of Basic MID$

Question: I need to test for a certain char in a char array.For example, in BASIC I would have: if mid$(string,1,1) = “`” then blah blah blah…. How would I

DevX - Software Development Resource

Sorting in a ListView

Question: I would like to know how to program a Custom Sort procedure on a ListView in Borland’s C++ Builder. Answer: Normally, the ListView control will sort items automatically for

DevX - Software Development Resource

Return type _Cdecl

Question: I have seen that in many of the header files in C++ the return type is _Cdecl. For example, in complex.h, we have the following: friend complex _Cdecl acos(complex&)

DevX - Software Development Resource

Quick sort

Question: I have pseudocode for a quick sort. I know how to implement it in Pascal. Is there simple code for quick sort in C++? How can I find other

DevX - Software Development Resource

External file execution

Question: How can I code a Visual C++ program that will execute a DOS bat file? Or any other executable file, for that matter? Answer: Use the system() function. This

DevX - Software Development Resource

Functions and parameters

Question: I know this may sound like a dorky question, but can you explain to me?as if I were a little kid?what are functions, and why and how are parameters

DevX - Software Development Resource

Pointers to member functions

Question: I am having lots of trouble calling a class member function pointer that is declared within the same class. So far the following compiles: class testClass {public: void (testClass::*ptr)();

DevX - Software Development Resource

Integer lengths

Question: What function gives the actual length of an integer or long integer? For instance, 8 is 1 long, 12345 is 5 long, etc. Answer: Use the sizeof() operator to

DevX - Software Development Resource

Performance—C vs C++

Question: What are the performance tradeoffs of using C++ instead of C? Are there any ways of overcoming these tradeoffs? Answer: In general, C++ is every bit as efficient as

DevX - Software Development Resource

Adding to the front of an array

Question: I have to read in integers and be able to add them to the front of the array. How do I do this? Answer: You can either use the

DevX - Software Development Resource

Windows programming

Question: We use NT 4 WS as the client to our PeopleSoft (Oracle) application, and we need to pick off the information contained on the panel fields. We can easily

DevX - Software Development Resource

Rebooting NT from VB

Question: How do I reboot (with an option to force) inside of Win NT? I know about the ExitWindowsEx API call, which works fine in Windows 95, but unfortunately this

DevX - Software Development Resource

File version information under NT

Question: I am using the GetFileVersionInfoSize, GetFileVersionInfo, and VerQueryValue APIs to get the file version of third-party applications. In all cases, GetFileVersionInfoSize returns a large number, but when I query

DevX - Software Development Resource

Output to I/O port under NT 4.0

Question: Please kindly advise how to output to a PC’s I/O port address: &H158 using Visual C++ under NT 40. For your information, we used to use outp() using C

DevX - Software Development Resource

FTP

Question: If I ftp to an AS400, I can run a program on it by typing quote rcmd call . Is it possible for me to do the same thing

DevX - Software Development Resource

Automatic logon problems in NT 3.51

Question: We are running a SCADA package on an NT 3.51 machine at a mine. Since we often have power failures, the PC reboots itself and then requires the operator

DevX - Software Development Resource

Scheduling A Visual Basic app on NT

Question: I have a VB app that was running on Windows 95 and using the scheduler included with Microsoft Plus. All was well. Now our company is switching to an