Search code examples
delphidelphi-11-alexandria

TWebUpdate E2003 Undeclared identifier _WIN32_FIND_DATA


I am trying to install TMS TWebUpdate in Delphi 11.1 using the last version I have, which installs fine in Berlin and Tokyo. Alas, it Alexandria it gives an error

[dcc32 Error] wupdate.pas(2342): E2003 Undeclared identifier: '_WIN32_FIND_DATA'

TMS no longer provides TWebUpdate as a standalone component, and I cannot afford £320 for the VCL Pack it is now part of!

Anyone know how to resolve this?


Solution

  • Previously, there was a

    _WIN32_FIND_DATA
    

    which was an alias for

    _WIN32_FIND_DATAW
    

    Now, Embarcadero has decided not to include such aliases any more, so you need to append the W yourself.

    (Of course, there's also a _WIN32_FIND_DATAA, but today we only need the wide version.)

    Alternatively, you can use WIN32_FIND_DATA or WIN32_FIND_DATAW or the more Delphi-like TWin32FindData (or TWin32FindDataW). These are all the same thing.