IT SOLUTIONS
916-726-5675
-Collapse +Expand

Delphi

Search Delphi Group:

Advanced
-Collapse +Expand Delphi Group Home◄╣
-Collapse +Expand Message Board
-Collapse +Expand Knowledge Base
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Delphi Store
PRESTWOODSTORE
-Collapse +Expand Members Only
   Prestwood ITPrestwoodBoardsAll Groups   

New to PrestwoodBoards?

Sign up, it's free and anyone can join.

Join Today for a free account,
or Sign In if you are already a member.

Delphi Group

Welcome Guest!

This page is the Delphi Group home page (summary page).


Delphi for Win32

Delphi group covering all aspects of Delphi for Win32 and the upcoming Delphi for Win64 as well as a Kylix archive.

CodeGear Delphi Helmet Icon

Also consider joining our...

Delphi Content!
Chat!
Delphi Board:
Posts =  2,058
Threads =  722
Unanswered =  43
Topics =  9
Research!
Delphi KB:
Articles =  106
News =  12
10 Min Starts =  4
Code =  54
Tips =  5
FAQs =  13
Links =  14
Translate!
To/From Code:
Topics =  52
Code =  660
Study!
eCertified:
Beg Q. =  15
Int Q. =  6
Adv Q. =  3

What's happening now! Delphi Group!

(New, updated, and unanswered.)

New: All Post Types

Message board, knowledge base, article comments, blogs, news, etc.

  Title Type Topic
Sign In To Check If Stuff Is New
49
Hits
1. RE: Server 2003 and BDE
{Too Long}
8/15/2010, 4:31:16 PM

MB Post
Delphi Single User Apps  
   2. Server 2003 and BDE...again! By owen.moore
Sign In To Check If Stuff Is New 3. Comment about One Recommended way of writing IF/End IF statements
Oh, on re-reading my post today, I noticed the the outer parentheses in the if statement given aren'...
7/9/2010, 5:32:05 AM

Comment


Tip
Language Basics  
Sign In To Check If Stuff Is New
90
Hits
4. Directory Listing
Owen,Interesting question. The below code will add file names (excluding paths), except for director...
7/1/2010, 1:38:28 PM

MB Post
Delphi Single User Apps  
Sign In To Check If Stuff Is New
138
Hits
5. Great Reply
Hi Larry, Thanks for the great post putting some meat on the bones of my suggestions. There's nothi...
6/10/2010, 8:00:33 AM

MB Post
Delphi Single User Apps  
   6. RE: Can anybody help me with getti......again! By owen.moore
More...

New: Delphi Message Board Posts

Go To: Delphi Message Board
 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
108
Hits
Server 2003 and BDE
I have just thought I might move all my delphi stuff onto my 2003 server and then use remote desktop to access it however some of my apps give me a bdertl70 err...
2
Hi Owen, I suspect a rights problem. The app/user needs full rights to the data folder and net dir.
8/16/2010
Delphi Single User Apps
Sign In To Check If Stuff Is New
158
Hits
Can anybody help me with getti...
Can anybody help me with getting a directory file listing into a listbox so that I can programatticlly go through the listbox and put the filenames into a datab...
1
Owen,Interesting question. The below code will add file names (excluding paths), except for director...
7/1/2010
Delphi Single User Apps
Sign In To Check If Stuff Is New
217
Hits
Can anybody help me with getti...
Can anybody help me with getting a directory file listing into a listbox so that I can programatticlly go through the listbox and put the filenames into a datab...
4
Hi Larry, Thanks for the great post putting some meat on the bones of my suggestions. There's nothi...
6/10/2010
Delphi Single User Apps
Sign In To Check If Stuff Is New
298
Hits
Updating third-party components
HiI don't get to spend as much time programming as I'd like to, so when I'm on a project, I tend to use a brute force approach, banging on each problem as I rea...
2
{Too Long}
1/25/2010
Delphi VCL
More...

Unanswered: Delphi Message Board

 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
444
Hits
PDF and RTF and Graphics
>We are also toying with Rave report instead of RTF as Rave apparently can output a PDF quite easily. [wp] I think you're on the right track - turning to a reporting tool.  Rave might do the ...
0New!
5/5/2009
Delphi News / Other
Sign In To Check If Stuff Is New
871
Hits
Login to PHP pages with NMHttp
Hi. is there any one help me? I want to Login to one Website (Username & Password)Like mail.yahoo.com ?Using NMHttp Post method in my program.but i can't do this. I'm using Delphi6. Tnx.
0New!
7/9/2005
Delphi Internet Solutions
Sign In To Check If Stuff Is New
644
Hits
how can I Login to PHP pages with NMHttp?
Hi. is there any one help me? I want to Login to one Website (Username & Password)Like mail.yahoo.com ?Using NMHttp Post method in my program.but i can't do this. I'm using Delphi6. Tnx.
0New!
7/8/2005
Delphi VCL
Sign In To Check If Stuff Is New
1397
Hits
MSSQL locks on ApplyUpdates with nested CDS
I have 2 tables on MSSQL 2K. Master table has a structure like this (simplified): master_table: key1 char(25), key2 integer, field1 integer, field2 char(50). key1 and key2 compose a primary key. ...
0New!
2/17/2005
Delphi Distributed Apps
More...

New: Delphi Knowledge Base Posts

Go To: Delphi Knowledge Base
    KB Article KB Topic
Sign In To Check If Stuff Is New
210
Hits

KB Post
1. GETTING A LIST OF PC MAC ADDRESSES

Found a cryptic version of this code on http://www.delphifaq.com/faq/delphi/network/f702.shtml by...

6/1/2010
Coding Tasks
Sign In To Check If Stuff Is New  
859
Hits

Code

KB Post
2. Delphi Array (x=Array[0..3] of string;)

Delphi supports both static and dynamic arrays.

(1 Comments , last by rdkram )
3/30/2010
Delphi for Win32
Sign In To Check If Stuff Is New
458
Hits

FAQ
3. BDE SQL Links Not Maintained

I have an application in Delphi 1-7, using BDE. Is there a way that I can upgrade the BDE so the...

2/15/2010, Updated: 5/7/2010
BDE
Sign In To Check If Stuff Is New
30
Hits

Article
4. Delphi Best Practices 3: TDataModule

Since its inception, Delphi has been one of the premier database development tools. From day one,...

[DRAFT]
1/26/2010
Coding Tasks
More...

New: To/From Code

Go To: Delphi To/From Guides

Code Snippets

  Code Snippet Created
1. Array 3/23/2010
2. Comments 1/1/2009
3. Sealed class 1/1/2009
4. Abstraction 1/1/2009
5. End of Statement 1/1/2009
6. Case Sensitivity 1/1/2009
7. Literals 1/1/2009
8. Variables 1/1/2009
9. Assignment 1/1/2009
10. String Cancatenation 1/1/2009

Topics

  Topic Category Created
1. Array Data Structures 3/20/2010
2. Comments Language Basics 1/1/2009
3. Left of String Commands 1/1/2009
4. Prevent Derivation OOP Details 1/1/2009
5. Abstraction OOP Details 1/1/2009
6. End of Statement Language Basics 1/1/2009
7. Case Sensitivity Language Basics 1/1/2009
8. Literals Language Basics 1/1/2009
9. Variables Language Basics 1/1/2009
10. Assignment Operators 1/1/2009

New: eCertified Study Questions

Go To: eCertified
Question Level Type Based on KB Post KB Topic
Which is the correct syntax for declarin... 1 MC Delphi Array (x=Array[0..... Delphi for Win32
Which is the correct syntax for declarin... 2 MC Example: Using Sets in Bo... Language Details
VB.Net compiles to true Win32 native cod... 1 TF Delphi Deployment Overvie... Tool Basics
The correct syntax for a declaritive var... 1 MC Delphi Variables (var x: ... Language Basics
Which code line correctly embeds an apos... 1 MC Delphi Literals (apostrop... Language Basics
If x is defined as a variable of type do... 1 YN Delphi Literals (apostrop... Language Basics
The method name of a constructor is? 2 MC Delphi Constructors (cons... OOP
The method name for a class constructor ... 2 TF Delphi Constructors (cons... OOP
Which of the following lines of code wil... 1 MC Delphi End of Statement (... Language Basics
What does the following line of code do?... 2 MC Delphi Comments (// or { ... Language Basics

Weekly Delphi Lesson

[Print Lesson]

Week 35, Posted Monday 8/30/2010

Content changes every Monday @ 1AM!! Check back once per week. Learn! Review! Test Yourself!

FAQ of the Week
Question:

Can I call a DotNet DLL from my Delphi Win32 application? For example, with Delphi 7 or Delphi 2010?



Answer:

It's not easy because the .NET RTL resides in a different process. You can wrap up the DotNet DLL into an ActiveX control and call it or have both your app and the DotNet DLL write to the registry, a file, etc. By the way, you CAN wrap up a Win32 DLL in a DotNet DLL and call it from DotNet.

Tip of the Week
Tip: Before adding many new entries to a TStringList, set its Sorted property to false. Add all your entries. Finally, set the Sorted property back to True (if desired). Sorting is expensive, in terms of macnine cycles. By leaving the Sorted property set to True, you force the TStingList to re-sort itself after each entry. This can significantly slow things down. This applies to TStrings, as well, and all components that have a TStrings property, like TListBox, etc.
Code Snippet of the Week
Application.ProcessMessages

I always found the sleep command in ObjectPAL very useful. The following code does about the same thing in Delphi. It makes use of GetTickCount which is a Win32 API call that retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.

procedure TUtils.Delay(MillisecondsDelay: Integer);
var
   FirstTickCount: LongInt;
begin
   FirstTickCount := GetTickCount;
   repeat 
       Application.ProcessMessages;
   until ((GetTickCount-FirstTickCount) >= Longint(MillisecondsDelay));
end;
Definition of the Week
Strict Visibility:  The Strict specifier tightens up the scope for private and protected. With Strict Private, members within a class are visible ONLY within the class declared and Strict Protected are visible only within the class declared and descendent classes. Without strict, private and protected members can also be seen by all classes declared in the same unit (friendly classes). The Strict specifier was introduced with Delphi for .Net preview in Delphi 7 in an update to the .Net compiler preview and with Win32 in Delphi 2005 to fully comply with the .NET CLS. Delphi's traditional private specifier maps to the CLR's assembly visibility and the protected specifier maps to the CLR's assembly or family visibility.
Link of the Week
Dr. Bob 42 A popular, and charming, website containing the latest news, press releases, articles, book reviews, tools, third-party tool reviews, and news on conferences & training using Delphi for Win32, Delphi for .NET, Delphi for PHP, Kylix (Delphi for Linux), C++Builder (Delphi for C++) & C#Builder as well as ASP.NET, XML, SOAP and Web Services.
File of the Week

None This Week

Lastest Delphi Flashcard

Our flashcards are part of our library of tidbits.

Tidbits are FAQs, Definitions, Tips, and Code Snippets from our knowledge base.

Delphi Array (x=Array[0..3] of string;)

Delphi supports both static and dynamic arrays.

var
  MyArray: array[0..3] of string;
  i: Integer;
begin
  MyArray[0] := 'Mike';
  MyArray[1] := 'Lisa';
  MyArray[2] := 'Felicia';
  MyArray[3] := 'Nathan';
  
  for i := 0 to High(MyArray) do
    ShowMessage(MyArray[i]);
end;
Posted By Mike Prestwood, Post #102139, KB Topic: Delphi for Win32

Delphi Archive

Old Material from our old community

Online Delphi Lessons

Let the web teach you Delphi with these short, easy to read and follow, lessons.

Delphi Articles

COM Collections (125 KB PDF)

Abstract: Correctly implementing COM collections.

By William Pantoja. For developers to communicate among the applications they develop, Microsoft has provided an evolutionary path from DDE, OLE, OLE2, to COM (DCOM allows you to communicate between applications on different or distributed machines).

Writing High Quality Routines in Delphi
By Mike Prestwood

This Power Point presentation presents coupling, cohesion, and scope from an OO Delphi point of view. This presentation was given at the 1998 August Sacramento Delphi User Group meeting.


Delphi Gazette Archive

The Delphi Gazette was our monthly newsletter prior to the Prestwood eMag.

  • Delphi Gazette - Nov 1998 - Volume 1, Issue 10
  • Delphi Gazette - Oct 1998 - Volume 1, Issue 9
  • Delphi Gazette - August 1998 - Volume 1, Issue 8
    The August issue contains A New Look At Exceptions by Robert Muir, Using JPEGs in resource files by Larry J. Rutledge, Windows file association, Writing out Delphi source code to HTML, and more!
  • Delphi Gazette - July 1998 - Volume 1, Issue 7
    The July issue was skipped because Larry J. Rutledge, our editor, broke his collar bone.
  • Delphi Gazette - June 1998 - Volume 1, Issue 6
    The June issue covers Callback Procedures Using Delphi 3.0 by Dan Anaya, our Delphi Apprentice column covers several topics, and in our Components 101 column Larry J. Rutledge covers how to Auto-Repeat TSpeedButtons. Much more included!
  • Delphi Gazette - May 1998 - Volume 1, Issue 5
    The May issue covers Incremental Lookups in our Delphi Apprentice column, and TFileInfo in our Components 101 column.
  • Delphi Gazette - April 1998 - Volume 1, Issue 4
    Last Month, Mike Prestwood demonstrated how to design an object in Delphi by creating a TSysTime object. This month we'll extend it, adding needed funtionality to take an example class and make it more useful. Also in this issue is how to determine the cursor position in a TMemo or TRichEdit control, how to serve up a tray icon, and how to create control panel applets.
  • Delphi Gazette - March 1998 - Volume 1, Issue 3
    This issue covers creating classes for the novice, touches on entity business objects, and answers some reader questions.
  • Delphi Gazette - February 1998 - Volume 1, Issue 2
    This issue covers the Informant CD, GExperts (Programming Power for Delphi), and using Microsoft's IntelliMouse with Delphi.
  • Delphi Gazette - January 1998 - Volume 1, Issue 1
    In our premiere issue Mike Prestwood covers using string grids, using GetHeapStatus, beating shareware expiration dates, and Data Flow Diagrams DFD as applied to a non computer process (Store Bought vs. Diaper Service - Which is Better?).

Old Delphi File Library

Our Delphi Library area includes files we've posted as well as links to other Delphi libraries.

 
Mike Prestwood
Need service or help?
Have a question? Contact Us.
--Mike Prestwood
Follow us on: 
340 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!
1995-2010 Prestwood IT Solutions.   [Security & Privacy]   Made in the U.S.A..   No H1-B.   No offshoring.