英文:
Winapi.Windows naming conflict on TBitmap
问题
The Winapi.Windows 有一个 TBitmap 类型,但 Vcl.Graphics 也有相同的类型名称。
我如何解决这个冲突,以便同时使用 Vcl.Graphics TBitmap 和 Winapi.Windows 的其他功能(在这种情况下是句柄类型,但这也是一个一般性问题)?
编辑: 有人将这标记为这个问题的重复,但那些答案对我都不起作用。
英文:
The Winapi.Windows has a TBitmap type, but Vcl.Graphics has the same type name.
How can I resolve this conflict to be able to use the Vcl.Graphics TBitmap, but other functionalities of Winapi.Windows at the same time (the handle type in this case, but this is also a general question)?
EDIT: Someone marked this as a duplicate of this question, but none of those answers worked for me.
答案1
得分: 1
You need to fully qualify the TBitmap name.
var
MyBmp : Vcl.Graphics.TBitmap
英文:
You need to fully qualify the TBitmap name.
var
MyBmp : Vcl.Graphics.TBitmap
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论