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

Out-of-process components

Question: When attempting to instantiate an object contained in an ActiveX EXE the following message is received. “Only InProc Server components should be used. If you want to use the

DevX - Software Development Resource

Changing trademark symbol in VID 1

Question: We have trademark symbols sprinkled in our HTML Although MSIE 4.0 has no trouble with it, some browsers cannot interpret [ampersand]trade”. We try to replace them with the ASCII

DevX - Software Development Resource

Cross-platform socket communication

Question: I am writing a server written in Java that needs to take input from a game written in Visual Basic and sends the output to clients on the Internet.

DevX - Software Development Resource

Object passing between threads

Question: Am implementing a network simulation program thatrequires a sender and receiver thread, with a frame object being passed between the two threads.Could you suggest a way of connecting the

DevX - Software Development Resource

Java and videoconferencing

Question: I am conducting a study of operating system capabilities to support desktop videoconferencing.Would Java be a good Operating System for this purpose? Answer: Java itself is not an operating

DevX - Software Development Resource

File permissions

Question: How do you change UNIX file permissions in Java? I’ve seen it done and I need to replicate it. Answer: There is no platform-independent way of changingfile permissions in

DevX - Software Development Resource

StringTokenizer

Question: After: StringTokenizer st = new StringTokenizer(line); Do I have to write: String key = new String(st.nextToken()); or is it enough to write: String key = st.nextToken(); Answer: It is

DevX - Software Development Resource

Environment Variables

Question: How do I access environment variables? Answer: There is an undocumented method in java.lang.System with the signature: public static String getenv(String) You can use this method to fetch the

DevX - Software Development Resource

Templates in java

Question: Any suggestions on a good way to implement templates in java? Answer: The normal way to implement template behaviorin Java is to create an interface defining thecommon behavior that

DevX - Software Development Resource

Clipboard

Question: I’m having problems with application clipboard usage for “non strings”. If I try to create my own dataflavor it still seems to think the clipboard is a string. Answer:

DevX - Software Development Resource

Can Java be compiled as excutable Win95 program?

Question: I am curious if Java can be compiled as Windows 95 executable program? Answer: Yes, various Java compilers now support the optionto compile Java directly to native code. Visual

DevX - Software Development Resource

Coming Events

If you are extending an AWT Component, such as a Canvas to write your own control, then you will probably want it to trigger events that the super class does

DevX - Software Development Resource

Which Browser is Running Me?

While Java’s ability to run on numerous computer platforms makes a developer’s task easier, it is sometimes necessary to customize code to match the abilities of the environment. A good

DevX - Software Development Resource

Some Objects Are More Equal Than Others

A Vector is a convenient tool for keeping track of a set of objects, particularly when you don’t know in advance how many will be in the set. You can

DevX - Software Development Resource

Overloading postfix and prefix ++

For primitive types the C++ language distinguishes between ++x; and x++; as well as between –x; and x–;For objects requiring a distinction between prefix and postfix overloaded operators, the following

DevX - Software Development Resource

Assignment operator is not inherited

Unlike ordinary base class member functions, assignment operator is not inherited. It may be re-defined by the implementer of the derived class or else it is automatically synthesized by the

DevX - Software Development Resource

Tame Truncated Text

You may notice that the first or last character in a Label’s text can get partially chopped off by some implementations of the Java Virtual Machine. Older versions of browsers

DevX - Software Development Resource

Manage the Margins

LayoutManagers control the locations of AWT Components, such as Labels, Buttons and TextFields within Containers, such as Frames, Applets and Panels. Some of the five LayoutManagers included with Java 1.1

DevX - Software Development Resource

How to use a pointer to a pointer to an int

Question: How do you use a pointer to a pointer to an int?Like this: ————–int **IntPtr;————– How do you access the value “underneath” two pointers? Answer: You can deference a

DevX - Software Development Resource

Pointers

Question: On a test in college an instructor asked if it was possible to multiply and divide pointers. In the book we are using it says nothing about it, and

DevX - Software Development Resource

String arrays and pointers in C++

Question: I declared a string array, char *cities[15];, to hold the names of 15 cities. I want to allow the user to enter the 15 cities, but I do not

DevX - Software Development Resource

Casting CDECL_ to an int*

Question: Is there any way of casting the CDECL_ type to *int? Answer: No, because CDECL_ is not a type. It’s a calling convention. Calling conventions specify how arguments are

DevX - Software Development Resource

C++ (MFC)

Question: I am a student learning to do C++ programming with MFC. I have used InvalidateRect to update a particular area in a program. I thought invalidating reduced the flickering

DevX - Software Development Resource

OnMouseOver in Visual C++

Question: I have found many resources discussing the OnMouseOver event in JavaScript. I would like to know if this event is available in VC++ in any capacity, whether through an

DevX - Software Development Resource

General Protection Fault

Question: #include #include void main(){ randomize(); const int max_num=1000; int value[max_num]={0}; const num_word_per_line=8; cout

DevX - Software Development Resource

Running an Access Macro from ASP

Question: It’s possible to run an Access macro from ASP? Answer: Although you can run a macro from Access, it takes preparation, nerve and luck.Preparation, because you have to set

DevX - Software Development Resource

Emergency Exit

This is a trick you should never, ever apply, unless it is your lastchance to meet the deadline for the presentation which will save yourjob: #define private public #define protected

DevX - Software Development Resource

Printing a Report

Printing a simple report from Java is far from being as simple as you might expect. You use the Toolkit class to create a PrintJob, but the method requires a