1
vote
Vote UpVote

Class helpers and virtual methods – E2003 Undeclared identifier: ‘QueryInterface’/ ‘_AddRef’/’_Release’

The Wiert Corner – Reminder to self: if you want to stay compatible with old (Pre Delphi XE) source code, then do not use virtual methods in class helpers. Technically you can, as class helpers can inherit from other class helpers, but this is only supported as of Delphi XE. In lower versions you get these errors as apparently the Delphi compiler tags an IInterface to the class helper compiler result: [Error] Project1.dpr(14): E2003 Undeclared identifier: 'QueryInterface' [Error] Project1.dpr(14): E2003 Undeclared identifier: '_AddRef' [Error] Project1.dpr(14): E2003 Undeclared identifier: '_Release' Source: ...
Favorite? Off-Topic? jpluimers @ 2018-06-20 07:05

Statistics

Visits: 102
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)