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 May 2015 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
  May 2015 - Delphi Edition (762 of 4,803 subscribers receive this group's content.) Year 17 Issue 5  
Your full service technology partner!


Expert guidance from working professionals!
psSendMail DLL topic:
v1.1 Documentation
by Wes Peterson
v1.1 of psSendMail will soon be replaced by v2.

IT Water-Cooler for Power-Users topic:
Setup Exchange E-Mail Queue
by Jon Speare

About: An email queue is setup for 2+ workers as a queue where those working the queue move emails to subfolders or delete as they proceed. Subfolders sample: Assigned, Completed, Ignored, etc. Good for groups of staff to work. Our support@prestwood.com is an email queue. Our scheduler and tech staff in our Network Operating Center (NOC) work this queue.






 Delphi Group Top 
Visit Group | My Group Settings
Using Data topic (classic post):
Delphi Instance Counter
by Mike Prestwood
Implement static member data in Delphi with variables declared in the implementation section (unit scope). Increment and decrement variable in constructor and destructor. Then use a class function to surface the variable's value publicly.

Language Basics topic (classic post):
Delphi Comments (// or { ... } or (* ... *))
by Mike Prestwood

Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. A special comment. Delphi compiler directives are in the form of {$DIRECTIVE}. Of interest for comments is using the $IFDEF compiler directive to remark out code.


 Monthly Delphi Lesson
OOP Topic:
Code Snippet of the Month

Delphi for Win32 supports abstract class members using the abstract keyword. You can even instantiate instances of a class that contains abstract members. Then you override each abstract member in a descendant class with Override. Delphi does not support setting an entire class as abstract. You can create an abstract class (a class with one or more abstract methods), but there is no way to tell the compiler to not allow the instantiation of the abstract class. Delphi does not support abstract member properties directly. To implement an abstract properity, make use of abstract methods. That is, you can read a GetPropertyX abstract function and write to a SetPropertyX abstract procedure. In effect, creating  an abstract property.

TCyborg = class(TObject)

public
  procedure Speak(pMessage: String); virtual; abstract;
  procedure Walk; virtual; abstract;
end;
 
TSeries600 = class(TCyborg)

public
  procedure Speak(pMessage: String); override;
  procedure Walk; override;
end;
Delphi for Win32 Topic:
Resource Link of the Month: TechTricks.com Delphi Articles
www.TechTricks.com is run by Lance Leonard and contains a wealth of information. I remember Lance from back when I worked at Borland in the mid-90s. His website covers Paradox, Delphi, and other technologies.
Language Basics Topic:
Question:

What are the benefits of Win32/64 native code such as in Delphi over .Net?


Answer:

In general terms, native code offers faster potential performance and a smaller footprint but can be more complex to build. Also, native code does not require .Net's runtime -- Common Language Runtime (CLR).

Tool Basics Topic:
Tip of the Month

To insert a GUID into code using the Delphi Editor, use Control + Shift + G.

['{BB45987C-0552-415F-A439-636A87E9F4E2}']

 

However, if you are using either the Visual Studio or Visual Basic key mapping emulation, use Control + Alt + G.



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


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