
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.








Question: I would like to know what virtual function tables are. When one refers to vtables, is it a virtual function table that is implied? Answer: In short, vtables are
Question: If the destructor is called from a new’ed object (a->A::~A()), is the object’s instance deleted? Answer: No. A destructor is a special member function of a class that is
Question: We are getting an error message that says a function fromwithin a class C cannot allocate instanceof type C because one of the virtual functions(the one we wrote) is
Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call
Question: This is legal (safe) and works with the compilerenvironment I am using: CMyObject *ptr = NULL; delete ptr;However, I get a run-time error (assert) whenI use the array delete
Question: Do you know of a good tool for getting performance data on a pure C++ program?I need a tool that indicates sections of code thatuse the most CPU/memory, etc.
Question: I have a templated class A that defines two operator =, and a templated class B : public class A which should inherit the two virtual a::operator = I
Question: Background: Digital UNIX 3.2g, Alpha platform, latest GNU.From the FAQ, I know that you are supposed to declare static member variables externally from the declaration and inonly one place.
Question: I defined a class A, which has three constructors:A(), A(int), A(int, int)Can I just define the behavior in one constructor, say A(int, int), and let the other two constructors
Question: Is there a way to do some macro magic with members of a given class sothat when a designated name is called, itinvokes the macro that called the class
Question: I am a C/C++ programmer who is moving from the beginner to intermediate level. My question is, how does one move successfully from the beginner to intermediate level? Answer:
Question: I have written a program with two classes. Each uses the other within it and contains pointers to the other. However, this means that the first class encountered by
Question: I have a typedef structure that holds info for employees, and an array of these structures. I need to access a part of the structure for one employee. How
Question: I’ve read that there are two ways to define a class constructor. For example:class List…1. List():num(0) { }2. List() { num=0; }Why is the first one more efficient at
Question: I found on the Web a simple class Screen as follows: /*———————————————— * s c r e e n . h * * A class to manage an ANSI
Question: We have a structure already defined that is now being modified, containing more than 400 pages that include IMG tags. The entire “mess” is being moved to another server/structure
Question: My connection to my server is disrupted when I get a call on call waiting. No one seems to know how to dis-enable my call waiting. Service is provided
Question: I have Internet Explorer 2.1. While downloading, it popped up a box to show my rate of transfer (bps). I have since installed a new hard drive. Once I
Question: Is there a way to stop a background from tiling? Answer: Yes and no. You cannot stop a background graphic from tilling but you canmake it “seem” like it
Question: Is it possible to determine the size (width and height) of the current user’s browser window? If so, is it then possible to use that pixel dimension and paste
Question: How can I link my home page to my domain name? My domain name will be “shhspgh.org”. How can I name or link my home page document so that
Question: I am writing a Music CD program. I know that each Music CD has a unique number that identifies it. How can I access the number on the CD?
Question: What’s happening with multi-user 3D servers for VRML worlds? Can I take myavatar into any world yet? Answer: There are a few companies selling commercial versions of multi-user 3Dservers,
Question: When, in general, is it best to use DAOs as opposed to data controls? We are building VB clients for Access and MS SQL Server. Answer: If you plan
Question: I need to change one offset value in a binary file. How can I read the file with Visual Basic? Answer: I would recommend loading the file into an
Question: I just got a copy of VB5 Enterprise. In the books on line it talks about the Animation Control. The control is to be used for silent AVI Files.
Question: I read an article on another VB site dated 3/28/97 that stated that the executables created by VB 5.0 would still require a runtime dll (vbrun500.dll or something like
Question: I feel dumb.Is there a way to block comment code in VB?I searched high and low for the answer, but it has escaped me. Answer: Don’t feel dumb…this was
Question: I need to know if you can have more than one keydown at a time because itwon’t let me turn and fire at the same time. Using the keydown
Question: How can I reset the filter of the child drop-down datawindow? I have used SetFilter(“”) and it’s not working. Answer: PowerBuilder’s Filter functionality is a two-step process. First, set

