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

September 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 Sep 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
  September 2009 - Delphi Edition (754 of 4,788 subscribers receive this group's content.) Year 11 Issue 9  
Your full service technology partner!


Expert guidance from working professionals!
Wes Peterson
General Coding Concepts topic:
Is Native Code Irrelevant?
by Wes Peterson

With Microsoft heavily evangelizing .NET, and Sun continuing to improve Java, many a developer and customer are torn between targeting native machine code or a just-in-time compiler.

Here we take a quick look at that particular state of the union...

Windows Users topic (classic post):
Speed Up Your Windows Computer for FREE
by Mike Prestwood

If your computer was fast but is now slow, you can use techniques such as adware removers, defrag, and others to bring your PC back to life! You can also add hardware to speed up your computer (RAM, SATA HD, better video card, etc.).


psSendMail DLL topic:
v1.1 Documentation
by Wes Peterson
v1.1 of psSendMail will soon be replaced by v2.





 Delphi Group Top 
Visit Group | My Group Settings
Delphi for Win32 topic (classic post):
Virus Targets Old Delphi Tools

New virus targets old versions of Delphi but not the applications developed with Delphi and not the current Delphi versions, just Delphi itself. I detest the jerks that write viruses and other forms of malware.  But this one really gets my goat generally because it was a virus that targeted my favorite best-of-breed development tool and specifically because ZDNet reported the problem in a way that implies it targets applications developed by Delphi. Despite ZDNet's tag line, the virus targets old versions of Delphi (4, 5, 6, and 7) but not the applications developed with Delphi and not the current Delphi versions. I sure hope the way ZDNet chose to report this issue doesn't hurt Embarcadero, the owner of Delphi, because of a virus that attacks pre-Embarcadero versions of Delphi.


Using Data topic (classic post):
Using DotNet DLLs in Delphi Win32 Apps FAQ
by Mike Prestwood
Using DotNet DLLs in Win32 and using Win32 DLLs in DotNet. When. Why. How.

Using Data topic (classic post):
Delphi Components 101
by Mike Prestwood
Be careful who you associate with!

 Monthly Delphi Lesson
Delphi for Win32 Topic:
Code Snippet of the Month

Delphi also offers a try...finally where code will execute in the finally section no matter what. It's common to put a try...except inside a try...finally:

var

y : Double;
begin
try
y := 0;
y := (1/y);
ShowMessage(FloatToStr(y));
except
ShowMessage('You cannot divide by zero.');
end;
end;
Language Basics Topic:
Definition of the Month: Delphi Module
A unit. A unit is defined in its own source file (a .PAS file) that contains types (including classes), constants, variables, and routines (functions and procedures). Each unit begins with unit UnitName; where UnitName must match the filename (minus the .PAS extension). The .PAS unit files are compiled into Delphi Compiled Units with a .DCU extension. A Delphi program is constructed from units. Specifically, the .DCU files are linked into your application. The Delphi compiler is very fast because it only recompiles units that have changed. You can force Delphi to recompile all units with a build all.
Delphi for Win32 Topic:
Documented Error of the Month: Program or unit recursively uses itself
Error:

[DCC Fatal Error] Program or unit 'Buttons' recursively uses itself

Explanation:

You cannot create a Delphi unit with the same name as is already in use. For example, do not create a buttons.pas unit for your application because the VCL already has a Buttons.pas unit. The solution is to rename your unit.

Education (Audio/Video) Topic:
Resource Link of the Month: Video & Audio: CDN Delphi TV

Lots here! {#geek} Delphi TV is part of CodeGear's developer network. Contains both audios and videos.

OOP Topic:
FAQ of the Month: Sealed Classes
Question:

What is a sealed class?


Answer:

A class which prevents another class from inheriting from it and/or prevents another class from overriding a member. The concept of making sure a class is the last class in a descendant class tree.

Examples - /ASPSuite/KB/CrossRef.asp?LangID=&ToLangID=&CatID=10&SyntaxID=4

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.



Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


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