The Latest

DevX - Software Development Resource

Disksize/Diskfree problem

Question: I am writing a small Delphi 2.0 program to list out all the drives on a system, plus total and free disk space. No problem, except that with hard

DevX - Software Development Resource

Direct port access in Win95 with Delphi 2.0

Question: We have a specialized ISA bus hardware card that has relays, etc. on it that are accessed by writing or reading to the PC’s I/O ports.How can I port

DevX - Software Development Resource

Easiest connection to a database

Question: What is the easiest connection (installation at customer site and use in program) to a database ? BDE, ODBC or Paradox direct access? Answer: It depends on the database.

DevX - Software Development Resource

Date formatting with shortdateformat

Question: I’m using Delphi 2.0. My application changes the date format with ShortDateFormat:=’dd/mm/yyyy’ and dateseparator functions. It works, but I found that when I change the taskbar’s ontop or autohide

DevX - Software Development Resource

Database management program for multi-user

Question: I am using Delphi 1.0 and am having a hard time trying to find commands/procedures/modules to lock a record from a Paradox database. What should I do to lock

DevX - Software Development Resource

Closing MDI children in an MDI application

Question: I have made an MDI application with many MDI children, but when I try to close an MDI child it becomes minimized. How can I avoid this and close

DevX - Software Development Resource

32-bit VCL Errors

Question: I’ve downloaded some components for use in Delphi 2.0, but I can’t get them to install into the VCL. Even the 32-bit dedicated ones come up with an error

DevX - Software Development Resource

Adding lines to a TStrings Type Property

Question: What am I doing wrong? I can insert the date and time to a Label component very easily (see first proc below), but not into a RichEdit component. I

DevX - Software Development Resource

Changing the Font

Question: I can’t stand the “new” font used in VB5’s pulldown menus and forms (ie. File, View, Tools, etc.).I’ve tried and tried, but I can’t seem to change it. Answer:

DevX - Software Development Resource

API declarations

Question: Where can I take all the new API declarations about the network, like: NetServerGetInfo, NetServerTransportAdd… Answer: If you just want the declarations, you can add Windows API Functions as

DevX - Software Development Resource

Business function in the MATH unit

Question: I recently incorporated the math unit into an application I’m building. Originally I was using OLE to Excel to perform my business calculations, and though this was a clean

DevX - Software Development Resource

Alternative to the BDE

Question: I have database software that is about 1 MB in size (with all the files). I need to distribute the BDE, which uses up to two diskettes. I do

DevX - Software Development Resource

An event when the table record changes

Question: While the OnDataChange event is called when a record is changed, it is called several times for each change and then each time a piece of data changes in

DevX - Software Development Resource

Changing Label Captions in a FOR Loop

Question: I’m trying something like this: for i:=0 to 1000 do label1.caption:=’I= ‘+inttostr(i); but the loop executed so fast, the label doesn’t display anything until the loop is over. This

DevX - Software Development Resource

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

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 - 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

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

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

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 - 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

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

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

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 - 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