> > Try using HB_OS_WIN_USED to include windows.h. >> > > I put > > #define HB_OS_WIN_USED > > just before > > #include "clipdefs.h" > > and the errors went away. Is this correct?
Yes. You should put #define HB_OS_WIN_USED before any Harbour headers. At the same time you should remove the #include <windows.h> line from your source file. This logic didn't change since the beginning, except the name of the macro controlling it (was HB_OS_WIN_32_USED, now is HB_OS_WIN_USED). Since Harbour should be compatible with old name yet, chances are high your using -DHB_LEGACY_OFF, which turns off this compatibility feature. Remove this macro, and retry, and add it back when code is fully cleaned from legacy macros. > Warning W0001 Redefinition or duplicate definition of #define ES_PASSWORD >> > > in another module that compiled fine before. Any suggestions? Some Windows headers are double #included. Brgds, Viktor
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour