Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:29:11+00:00 2026-05-27T09:29:11+00:00

When compiling Embarcadero VirtualShellTools in Delphi 2007: http://embtvstools.svn.sourceforge.net/ function TShellIDList.InternalChildPIDL(Index: integer): PItemIDList; { Remember

  • 0

When compiling Embarcadero VirtualShellTools in Delphi 2007: http://embtvstools.svn.sourceforge.net/

function TShellIDList.InternalChildPIDL(Index: integer): PItemIDList;
{ Remember PIDLCount does not count index [0] where the Absolute Parent is     }
begin
  if Assigned(FCIDA) and (Index > -1) and (Index < PIDLCount) then
    Result := PItemIDList( PByte(FCIDA) 
                         + PDWORD(PByte(@FCIDA^.aoffset)
                                  +sizeof(FCIDA^.aoffset[0])*(1+Index))^)
  else
    Result := nil
end;

I get this error:

[Pascal Error] IDEVirtualDataObject.pas(1023): E2015 Operator not applicable to this operand type

What’s the problem with this code and what kind of type-casting do I need to do to actually make it work?

I get the same error on the following (less complex) routine:

function TShellIDList.InternalParentPIDL: PItemIDList;
{ Remember PIDLCount does not count index [0] where the Absolute Parent is     }
begin
  if Assigned(FCIDA) then
      Result :=  PItemIDList( PByte(FCIDA) + FCIDA^.aoffset[0])
  else
    Result := nil
end;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:29:11+00:00Added an answer on May 27, 2026 at 9:29 am

    Pointermath was introduced in Delphi 2009. The best you can do in Delphi 2007 is to use Inc procedure instead:

    function TShellIDList.InternalChildPIDL(Index: integer): PItemIDList;
    { Remember PIDLCount does not count index [0] where the Absolute Parent is     }
    var
      Tmp, Tmp2: PByte;
    
    begin
      if Assigned(FCIDA) and (Index > -1) and (Index < PIDLCount) then begin
        Tmp2:= PByte(@FCIDA^.aoffset);
        Inc(Tmp2, sizeof(FCIDA^.aoffset[0])*(1+Index));
        Tmp:= PByte(FCIDA);
        Inc(Tmp, PDWORD(Tmp2)^);
        Result := PItemIDList(Tmp);
      end
      else
        Result := nil
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When compiling my C++ .Net application I get 104 warnings of the type: Warning
When compiling an ASP.NET 2.0 App names MySite for deployment I get a series
The tab order on my form in Delphi (Embarcadero® Delphi® 2010 Version 14.0) is
Compiling CUDA code with immediate (integer) operands, are they held in the instruction stream,
When compiling this code I get the following error : In function 'int main()':
When compiling a 64bit application, why does strlen() return a 64-bit integer? Am i
Compiling a VS 2010 c# project (.NET 4.0, any CPU, allow unsafe code =
Compiling this simple function with MSVC2008, in Debug mode: int __cdecl sum(int a, int
Compiling the file main.c with: gcc main1.c -o final gives me: /tmp/cc1cwhAP.o: In function
Compiling a C++ file takes a very long time when compared to C# and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.