Undeclared windows.bitmap error

When we migrate a old version Delphi application to new version and if we have used windows.bitmap type variable in our project then we generally get following error.

Undeclared identifier windows.bitmap 

Actually we get this error because earlier bitmap type was declared in windows unit which is replaced with winapi.windows in latest versions.

So if we replace windows.bitmap with winapi.windows.bitmap then error will be resolved.

just replace windows.bitmap with winapi.windows.bitmap 

Cheers...😊

Comments

Popular posts from this blog

ShellExecute in Delphi

How to send Email in Delphi?

Variants in Delphi. Use of Variant Array. How to check a Variant is unassigned or empty or clear ?