Compiling issues after installation of TMS VCL UI Pack in Delphi7

Hello,

I have an old project that runs on Delphi7, for which I would like to try an component included in the VCL UI Pack.

Therefore I installed the pack manually using the dpks for Delphi7 since it runs on an old virtual system, which worked without problems.

Now however when I compile the project I am getting very weird errors which I can only presume to be compiler directive problems.

For example the first error I get complains about the unit AdvTypes.pas:

TSizeF = record
    cx: Single;
    cy: Single;
  {$IFNDEF WEBLIB}
  public
    property Width: Single read cx write cx;
    property Height: Single read cy write cy;
  {$ENDIF}
  end;

This is just one example. There are plenty of errors which simply do not make any sense, since they all complain about things that did not exist in Delphi7 like properties, methods and public/private in records, REGION compiler directives and so on, for which the simplest explanation would be compiler directive problems which cause code to be compiled that shouldn't be compiled in Delphi7.

Therefore my question: Is Delphi7 still supported for the TMS VCL UI Pack, and if so do you have any idea which could be causing this phenomenon?

Are you sure there is only one & correct TMSDEFS.INC file in your library path?
With the correct .INC file, there shouldn't be any compile problem with TMS VCL UI Pack.
Search your full hard disk for duplicates of TMSDEFS.INC and make sure all but the latest version part of TMS VCL UI Pack is in your library path.

This is the first time that I've installed the VCL UI Pack in Delphi7, so there are no possible conflicting versions.

I've analyzed the errors however and what is striking to me is that at least in the AdvTypes.pas a lot if not all of the problematic code, which declares things that aren't possible in Delphi7 like properties and methods in records, REGION directives and so on, seems to be surrounded by the directive "{$IFNDEF WEBLIB}", which represents the WebCore-library if am not mistaken, which I do NOT have, thus for me "{$IFNDEF WEBLIB}" is TRUE.

Based on that I've performed a little experiment and added "{$DEFINE WEBLIB}" to the TMSDefs.inc-File in the component folder, which indeed eleminates a lot of errors but of course generates new ones since I don't have got WebCore.

This at least proofs that the correct TMSDefs.inc is accessed and suggests that there seems to be an issue with the compiler directives for Delphi7: My strong suspicion is that if I had WebCore installed it would work.

Is that plausible?

What component did you add that pulls in AdvTypes.pas?

The culprit was the unit "AdvScrollControl", which triggers a chain of use-cases that lead to AdvTypes.

However, as it turns out "AdvScrollControl" wasn't even supposed to be in the uses since it is only used in components that aren't offered in Delphi 7. I can't tell you how it appeared there but it is quite likely that this was a mistake on my part.

Therefore this problem is now solved. Sorry to bother you with something that wasn't even your fault.