Tip Bank

DevX - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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 - Software Development Resource

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