More Programming Articles Page 9

  • Object Pooling in COM+...

    How is Object Pooling Implemented in COM+?Behind this Concept... THIS ARTICLE DISCUSSES THE CONCEPT BEHIND THE IMPLEMENTATION OF OBJECT POOLING IN COM+ RUNTIME. What...
  • Smile! Click! Copy! Smile Again!

    The Perpetual Newbie - Log Entry #9.1This article first appeared on http://www.undu.com It's the nice touches that leave a client happy he chose you rather than the...
  • Optimizing Object Pascal

    A story of optimization.This article originally appeared in Delphi Developer Copyright Pinnacle Publishing, Inc. All rights reserved. Optimizing Object Pascal This...
  • Making an application a TCP/IP Client...

    Connecting to a TCP/IP Server from a Delphi client In order to make a Delphi Application as a TCP/IP Client, we can use the TClientSocket Component. I faced a problem...
  • TDistribution class

    This article gives the source code for a nice, clean implementation of a class to compile the discrete, cumulative distribution function of a sample data set. The CDF...
  • Making an application a TCP/IP Client(with sample code)...

    Connecting to a TCP/IP server from a Delphi Client This article is a continuation of my previous article(http://www.howtodothings.com/showarticle.asp?article=218)...
  • The Security of Knowing Who's Who

    The Perpetual Newbie - Log Entry #5.2This article first appeared on http://www.undu.com An earlier version of this article appeared early in Feb 00. Some corrections,...
  • The Dating Game

    The Perpetual Newbie - Log Entry #6.1This article first appeared on http://www.undu.com If you have parameterized queries, you probably are getting date ranges for one...
  • Now Children, One Question at a Time!

    The Perpetual Newbie - Log Entry #7.1This article first appeared on http://www.undu.com Normalized data is great. One instance of any individual datum, and never keep...
  • Implementing Immediate If (IIF) in Delphi

    I have never regretted moving from C++ to Object Pascal, but I did miss a useful feature of C - the Immediate If (iif). It seems like a great deal of my code involves...
  • What Type Is It!

    The Perpetual Newbie - Log Entry #8.1This article first appeared on http://www.undu.com As you discover the joys of allowing users to do ad hoc queries, you also...
  • An Overview of UDP...

    What is UDP? How can we use it in Delphi?An Introduction to UDP UDP is an abbreviation for User Datagram Protocol. It's nothing but a connectionless transport protocol...
  • The Answer, My Friend, Is Going With the Parameter

    The Perpetual Newbie Journal Entry #2.1 This article first appeared on http://www.undu.com Every one of us has heard the code reuse mantra. Some of us are a little...
  • Importing XML DOM Parser in Delphi?

    How to import XML DOM Parser component in Delphi? An Overview... One of the new features of Delphi 5 is that we can install COM servers as components in Delphi IDE....
  • Component Confusion? Try Templates!

    The Perpetual Newbie Journal Entry #3.1 This article first appeared on http://www.undu.com Code reuse. The mantra of all Delphi programmers of whatever experience...
  • A Printername by Any Other Name

    The Perpetual Newbie - Log Entry #4.1This article first appeared on http://www.undu.com I like to keep my users informed. A particular piece of information that tends...
  • Attributes/Advantages Of COM...

    The Advantages of using COMIn Brief... Nowadays, COM is gaining popularity as most of the languages support development of COM objects including Delphi. In future, all...
  • Get Zip Functionality for Free

    Looking for a way to integrate zip and unzip functionality into your application on the cheap? Here's the plan-and Fernando Vicaria has even wrapped it all up into a...
  • A Simple example of Artificial Intelligence using Delphi Array

    (Computer simulates learning process of human, learning by correcting mistakes !)Artificial Intelligence (AI) is an advance branch of science that studies the process...
  • How To Get Local IP Address

    How to get local IP addressuses   Winsock; function GetLocalIP: string; var   wsaData: TWSAData;   addr: TSockAddrIn;   Phe: PHostEnt;   szHostName:...
  • Move components from Delphi 5 to Delphi 6

    Moving components from Delphi 5 to 6 can be a problem. How can we do it?Have you tried to compile your components, or 3rd party components you have in Delphi 5 into...
  • Achieve Record locking with Access 2000

    How do I implement record locking on an Access 2000 database using Delphi?Have you seen this on Borland Support? Area: database\ado Reference Number: 74076 Status:...
  • Achieve Record locking with MSSQL 7 or later

    Programatically and Failsafe Lock Records in MSSQL 7 How would you like to be able to determine if a record has been locked in MSSQL Server and not get that annoying...
  • More Control of The MessageDlg

    The MessageDlg function is very useful because it handles all wordwrapping of the message and handles positioning of the buttons. But two different needs for a...
  • Riding the internet bandwagon

    Sending large pages of HTML is no longer a problem now that we can send the pages compressed !After two weeks of non-stop programming, your web application is ready...
  • Checking for a sound card

    How to check if a sound card is installed or not.This tip is not my own, it was sent to me via email. function IsSoundCardInstalled : Boolean; type SCFunc = function...
  • Holes in website's scripts

    This article describing a few holes that can be done by newbies coding a PHP based site.Holes in website's scripts I was messing around with our website and found...
  • Progmatically detect which version of ADO is installed.

    With different versions of MDAC available it is sometimes useful to know that your application won't fail because a user hasn't got the latest version installed The...
  • Setting the dropdown width of a combobox

    When the length of a string in a combobox exceeds the width of the combobox there are 3 things that can be done they are Shorten the string (not a very good solution)...
  • IFDEF Borland compiler

    How to determine which Borland product is compiling your component.Here is a brief explanation of what each of the defines mean DFS_WIN16: Compilation target is...
  • Writing (Non Com) Excel Add-ins in Delphi

    Writing Excel add-ins with Delphi is a challenging project. I show how it can be done, and highlight the various pitfalls waiting for the unwitting traveller in this...
  • Writing a Web Robot in Delphi

    In this article, David Bolton shows how to create a simple Web robot that does multiple parallel searches on a search engine and visits each Web site in the results...
  • A Recycling Factory Pattern in Delphi

    The problems of using and reusing many varying size objects in an application can cause fragmentation of the heap that can slow down processing speed. This article...
  • Setting TabStops in a TMemo

    How you can set TabStops in a TMemo component using the TMemo's Perform method.The magic number is the 160 below... Changing this number will change the tabstops...
  • Using The TServerSocket Component

    This letter was originally posted to delphi3000.comThe Delphi documentation on the TServerSocket's multithreading capabilities can appear a little sparse for the...
  • Turning Integers and words

    This article was originally posted to delphi3000.comSometimes it is nessescary to turn the bytes of an integer. This is known as the big-endian/little-endian problem,...
  • Using DirectDraw with Delphi

    This shows how to start using the DirectX library in Delphi programs and then demonstrates a simple application using the freeware library DelphiX.If you have ever...
  • Add a button to the caption bar of your form

    Add a button to the caption bar of the formI have created a component that allows you to add buttons to the caption bar of your form. Here is the code....
  • Debug logfile.

    This code shows one way to save much things that's going on in your application in a log file.Here are two files present, the project file and one unit that does the...
  • Paragraph pouring from a text editor

    In a word processor, you can work on paragraphs and then pour them into other programs as single lines, wrapped by the receiving windows. Here's how to write this into...
  • DebugWindow using Atoms

    Explains what Atoms are and how you can use them to send strings to other applications - without the need for shared memory.Topic: DebugWindow using Atoms and Messages...
  • How To Auto Start Interbase on Linux

    This is how to set up interbase / firebird to auto start when Linux starts. Copy the script below as 'ibserver' to /etc/rc.d/init.d cd to this directory and chmod 700...
  • How To Determine a Property Type

    How to tell what type a property is.var   PropInfo: PPropInfo;   Info: PTypeInfo; begin   PropInfo := GetPropInfo(Self, 'Test');   if PropInfo = nil then Exit;...
  • Creating a real singleton class in Delphi

    The article describes how to create a class that follows the singleton pattern. The class described will take care of the singleton requirements and effects itself,...
  • Is my application being debugged ?

    How to tell if your code is being run in debug mode.I found this code somewhere on the Internet, I cannot remember the source so I cannot credit the original author....
  • Implementing FoxPro's Scatter and Gather Memvar in Delphi

    Implementing FoxPro's Scatter and Gather Memvar in Delphi.= 0 Then Begin If (Target.Fields[i].DataType = MemObj.Fields[iIndex].DataType) Then ...
  • Speedy Access to FoxPro Data from Delphi

    Access FoxPro data using the speed of Rushmore in Delphi.= '+e_PastDue.Text+ ' Order By Client.Name,Age'+ ' Into Table '+GetTempDir()+'MyQuery' ; ...
  • Append a copy of your current record

    Append a copy of your current record. {************************************************ // procedure AppendCurrent // // Author: Steve Zimmelman // Date : 06/04/1996...
  • Persistent Objects

    Object data must ultimately be stored in a database. This article shows you how.Persistent Objects In the last couple of articles we have introduced business objects...
  • Factory patterns for menu operations

    In this article I press the Factory pattern into service for menu operations.Are You Being Served? In this article we take a short break from the rigours of...