IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   Print This    All Groups  
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

Prestwood IT Newsletter Apr 2009 Issue - Delphi Edition

Subscribe!

Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this Delphi group, you'll receive the following content below mixed in with the other groups you elect to include.

Prestwood eMag
Our monthly opt-in coupons+newsletter.
portal.prestwood.com
  April 2009 - Delphi Edition (762 of 4,803 subscribers receive this group's content.) Year 11 Issue 4  
Your full service technology partner!
From The Editor

We don't usually link to articles on other websites in the Prestwood eMag, but this month I couldn't resist...

10 Operating Systems the World Left Behind 
By Matt Lake, Computerworld
Matt takes you on a tour of operating sytems over the last 40 years including dead, dying, and under-used operating systems. I loved Matt's article. It brought back many memories.

My personal experience started with Commodore computers (C64 and C128) so I started on Commodore Basic 2.0, CP/M, and GEOS. From there I moved to the Amiga, NeXT, and Macintoshes finally giving in to Bill Gates when I was hired at Borland International.

If you're a long-time computer user, you'll enjoy Matt's article. If you're relatively new, Matt's article serves as a wonderful overview.

--Mike Prestwood



Expert guidance from working professionals!
Mike Prestwood
Getting Started topic:
20 Reasons to Own a Website
by Mike Prestwood

List of 20 reasons why you need to be on the Internet including to establish a presence/advertise, serve your customers, network with staff and vendors, to support your customers 24 hours a day, to reach the media, and to serve your local market.

Use these reasons as an Internet and email marketing guide for your web site. Does your website fully utilize each applicable reason?





 Delphi Group Top 
Visit Group | My Group Settings
Language Basics topic (classic post):
Delphi Constants (Const kPI: Double=3.1459;)
by Mike Prestwood

In Delphi, you define constants similar to how you define variables but use the Const keyword instead of the Var keyword. Declare global constants in a unit's interface section and unit constants (scope limited to unit) in the implementation section. Declare local constants above the begin..end block.


Coding Tasks topic (classic post):
Delphi Best Practices 2: Reusable Main Forms
by Wes Peterson

How often have you started a new Delphi project, then spent some time fleshing out the default main form provided by Delphi?

This task only needs to be done once or twice. Delphi then allows us to re-use this work at the start of each new project.

Source code is included.


 Monthly Delphi Lesson
Language Basics Topic:
Code Snippet of the Month

Declare global variables in the interface section of a unit, variables declared within the implementation section (but not within a method) have a scope limited to the unit. You declare local variables in a var block outside (above) your begin..end code block. You cannot declare variables in-line (inside begin..end). You can initialize global and unit variables but you cannot initialize local variables. Delphi offers many variable types. Some common variable types include String, WideString, PCharInteger, Boolean, Single, Double, Pointer, and Variant.

procedure SomeProcedure;
var

  Fullname: String;
  Age: Integer;
  X, Y, Z: Double;
  MyArray: array [1..100] of Char;
begin
end;
 
//You can initialize global variables.
var
  ClickCounter: Integer = 0;
Delphi for Win32 Topic:
Resource Link of the Month: Embarcadero Technologies
The new home for Delphi and the other CodeGear apps.
Delphi for Win32 Topic:
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.

Language Details Topic:
Tip of the Month

Although Object Pascal doesn't have a native associative array, many developers just use a TStringList. Others have implemented a true associative array in Object Pascal. Search the Internet for TStringHash and THashedStringList classes for examples.



Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]