Dont use PChar for Pointer Math

To summarize this section, stop using PChar for anything that isn't character or string related. If you need to be able to keep compiling your code in past versions of Delphi, you can use Inc and Dec and possibly change some of the other code. If all you need to support is Delphi 2009, convert the code to PByte (generally the easier route) or use specific pointer types and the new pointermath directive.

In any case, doing a search for PChar on your entire code base is generally a good idea!

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment