
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.
There are cases where you have to define several constructors (or constructors and operator = ) within one class, all of which perform some identical tasks (e.g., initialize members, allocate
Although Java’s String package is a lot more friendly than C’s string handling, you can still find yourself surprised by its behavior at times. Consider this code: import java.lang.String;public class
To present your applet in a visually pleasing way, it’s often handy to know the size of the screen that’s available for output. Fortunately, a built-in AWT function makes determining
Whenever you define a class member function which does not (and should not) change its object, it’s a good idea to define it as a const member function. There are
Did you ever feel the urge to use a nice Java class you just wrote as an ActiveX object on your Windows machine? Good news: you can do it in
Question: Can you explain to me how a linked list works with FILE I/O. For example, how do you add, modify, delete, and search for a student record in a
Question: I installed MS Visual C++ 5.0 at work and on my home machine. At work it’s fine running on Windows NT with 96 megs of RAM. On my home
Question: Can I have variable length fields in a structure. I have tried something like: typedef struct { int length; char data[length];}; but that won’t compile. Is there a way,
Question: When I open PowerBuilder, I want it to open showing the library painter by default. I tried modifying the Target in the Propeties for the PowerBuilder icon by adding
Question: How can I view and print a text file in PB5-16? I don’t need to edit. Answer: Use the FileOpen, FileRead and FileClose commands to read you text file.
Question: We want to create menus dynamically where we store the menu items in a table. While running the application, we want to read the values from the table and
Question: Say you have three classes, a base (called Base),and two classes derived from it (called Derv1 andDerv2). Base has a pure virtual function (called TypeGet()) that is defined in
Question: Is there a Windows function or some quick wayget a list of the keys in an .ini file, such as: [Section]Key1=xxxKey2=yyyKey3=mmmKey4=ppp I want this: ‘Key1’, ‘Key2’, ‘Key3’, ‘Key4’ Answer:
Question: I am working on my first Delphi 2.0 application which has grown to be quite large over the past few months. The problem is that lately I have been
Question: In what direction should I look to find a way tobuild a simple dos aplication with mouse control. Answer: Building a DOS application that provides mouse support involves writing
Question: I am having a problem with getting an infinite loop out of a particular program and I am not quite sure where the problem is at. If you could
Question: Is there a header file in Visual C++ v4 (sorry a bit behind :)) that replaces the old graph.h? I am writing console apps for school and would like
Question: I would like to program the parallel port in Windows NT or 95. What should I do? Answer: At the simplest level, accessing the parallel port involves reading and
Question: What is the best way to learn c++?I can study on line, by book or attend a course.Which are the bests places to start. Answer: The answer really depends
Question: Is there any way to abort a loop with just pressing a kee. Like you could do in Pascal: dountil keypress Answer: If you are writing a loop that
Question: I tried to place wild-card (e.g. ‘%Ken%’) for the searching of records in a DataWindow through QueryMode, but couldn’t get the result. Are there any other ways to do
Question: Our Powerbuilder application launches an external program using the RUN command. We use the Timer Event to keep checkingif the process is running by using theKERNAL32 external function GetModuleHandleA.
Question: I recently downloaded some applet source code, but they are all stored in “.tar” type files. What program do I need to expand them or otherwise make them useful?
Question: I need to find 2 things. I need a classthat will allow me to take a date and addand subtract days/months/years from it. I also need a class that
Question: I’m a new Java developer and was wondering if there is an easy way to grab information from a String object and place it into an “int”. For example:
Question: I have been trying to test my applets under IE4.It seems to me that IE4 must keep applets cachedbecaused I think it keeps running my original applet.Is there a
Question: I was wondering whether you could direct me the appropriate product or contact for the following information.I am currently investigating the use of supporting test tools for PowerBuilder. In
Question: I had some problems with distributed applications. I developed a DPB project (both the server and the client). The server has a NVO that connects to a database and
Question: If I try to share data from one primary into the secondary, no problem. The problem occurs when I try to share data from two primaries into one secondary.
Question: I am creating a “Change Password” screen in PowerBuilder 5.0. The window basically accepts the password entered by the user, verifies it by connecting to the database, then tries
