The Latest

DevX

Beginner

Question: I’m trying to mock some screens which is pretty simple but I do need a couple of commandbuttons to bring up another screen.For example, when the user pushes the

DevX

Cannot load form, unspecified error

Question: I have a project that exists on a NT 3.51 machine. When I copy all source code, etc. to my Win95 PC, Delphi does not load the main form.

DevX

Creating paradox-type tables at runtime

Question: I want to create paradox-type tables at runtime, which I am generally doing in this way:Table1.FieldDefs.Add(‘IDnum’, ftInteger, 0, False)….Table1.CreateTableHowever, there seems to be no FieldType for an auto-increment number

DevX

How to access your comport

Question: How can I access my comport? How can I send bytes to the datatransfer pin? I’m using Delphi 1.0I’ve tried writecomm and transmitcommchar (and I’ve opened the port with

DevX

‘Structs and classes

Question: Please examine my code and tell me what I am doing wrong!This is the first part of my program:#include #include class LinkedLst{ public: LinkedLst(); //Constructor void AddToFront(int Value); //Add

DevX

Overloading the assignment operator “=”

Question: I am puzzled at the way in which the assignment operator is overloaded in C++. Would you please show an example as to what efficient code for overloading this

DevX

ActiveX and Delphi

Question: Does Delphi support ActiveX? If so, do I need something extra to run ActiveX controls in Delphi? Answer: As long as the OCX is registered (which you can do

DevX

Type conversion

Question: How does one convert a double to an int? Is there a function like floor that actually returns an int? Answer: There are many things you can do to

DevX

The time.h Header File

Question: I am trying to write a program that provides a constructor that’s capable of using the current time from the time() function declared in the C standard library header

DevX

Processor fault

Question: Why do I get with the following program, this error: general protection exeption, 0x215f:0x1ef3timer(1) 0x215f:0x1ef3 Processor fault.Program (very small):#include #include int get_value (int _value);void main (void){ int _time=0; int

DevX

Two-dimensional array

Question: How can I dynamically declare a 2D array and pass it as a parameter to a function?Here’s an example of what I’m trying to do:#include #include #include const SIZE

DevX

Exporting data

Question: I wasn’t able to find out what all the command line switches for dbexport do. The only ones I found were -o and -c.Is there a way to export

DevX

What happens to dangling pointers in java?

Question: What happens to dangling pointers in Java? Supposedly there is garbage collection, but when is it performed? From what Ihave read, it seems really easy to have persistent danglingpointers

DevX

Initializing a deck of cards using a for-loop

Question: I have two enumerated types: enum suit_type{club,diamond,heart,spade} and enum rank_type{ace,two,…,queen,king}. In structure CARD, I have the variables suit_type suit and rank_type rank. In class PILE, I have a private

DevX

Virtual function tables

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

DevX

Destructor-explicit invocation

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

DevX

Virtual function is abstract

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

DevX

Memory re-allocation

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

DevX

C++ Program Performance Monitor

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.

DevX

Inherited operator = not being seen

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

DevX

Constructor with static members in library

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.