[yunqa.de] Re: issue with DIHtmlParser install

  • From: "Kirk Dunlap" <kdunlap@xxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Thu, 17 Jan 2008 07:33:15 -0600

Ralf,
   I followed the steps verbatim, and I still get the same error.  You
mentioned to open DIUtils.pas and make the changes, however since DIRegEx
was the last components I extracted and overwrote in my "unified" directory,
DIUtils.pas was already updated with the changes.  Keep in mind I've
purchased the components WITH OUT sources, this may be why DIHtmlParser
still complains. Also, this is on D2007 Pro.


Kirk

On Jan 17, 2008 4:41 AM, Delphi Inspiration <delphi@xxxxxxxx> wrote:

> Kirk Dunlap wrote:
>
> >   I just purchased DIHtmlParser and assumed that I might face the same
> issue that I had with DIFileFinder and DIRegEx installing into different
> directories.  So I followed your steps on installing DIFileFinder and
> DIRegEx into the same directory but added DIHtmlParser into the mix as well.
>  I got the following error when trying to install DIHtmlParser:
> >
> >[DCC Error] Unit1.pas(7): F2051 Unit DIHtmlParser was compiled with a
> different version of DIUtils.ConCatBufW
>
> This results from a minor interface change in DIUtils.ConCatBufWintroduced in 
> DIRegEx which has not made it into DIFileFinder and
> DIHtmlParsr yet (I shall release compatability fixes shortly):
>
> OLD(DIFileFinder, DIHtmlParser):
>
>  procedure ConCatBufW(
>    const Buffer: Pointer;
>    const WideCharCount: Cardinal;
>    var d: WideString;
>    var InUse: Cardinal);
>
> NEW (DIRegEx):
>
>  procedure ConCatBufW(
>    const Buffer: PWideChar; // <<<--- Changed here! <<<---
>    const WideCharCount: Cardinal;
>    var d: WideString;
>    var InUse: Cardinal);
>
> The change is intended to make explicit that ConCatBufW processes WideChar
> data not and not just any type of data. It normally does not cause any
> trouble except, unfortunately, for Delphi's package installer.
>
> >What to do to resolve this now?
>
> Open DIUtils.pas and change the definition of ConCatBufW from the new to
> the old one (just PWideChar to Pointer). Do this twice, for both the
> interface and implementation sections.
>
> Here are the steps I took to verify that the install works correctly:
>
> * Uninstall your previously installed DI pagages from Delphi.
>
> * Extract your three packages into the same folder, in this order:
> DIFileFinder, DIHtmlParser, DIRegEx. Confirm to overwrite existing files.
>
> * Open DIRegEx_Dx.dpk. Add the following files to the package:
>
>  - DIFileFinderReg.pas
>  - DIHtmlParserReg.pas
>
> * Open DIUtils.pas and apply the changes as described above.
>
> * Compile and Install.
>
> Ralf
>
> _______________________________________________
> Delphi Inspiration mailing list
> yunqa@xxxxxxxxxxxxx
> //www.freelists.org/list/yunqa
>
>
>
>

Other related posts: