Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Delphi TWebUpdate E2003 Undeclared identifier _WIN32_FIND_DATA

I am trying to install TMS TWebupdate in Delphi 11.1 using the last verion 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 provide TWebupdate as a standalone component, and I cannot £320 for the VCL Pack it is now part of!

Anyone know how to resolve this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading