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

MS Excel Automation in Delphi

ShellExecute in Delphi

Drawing Shapes in Delphi