Winapi.Windows TBitmap 命名冲突

huangapple go评论52阅读模式
英文:

Winapi.Windows naming conflict on TBitmap

问题

The Winapi.Windows 有一个 TBitmap 类型,但 Vcl.Graphics 也有相同的类型名称。

我如何解决这个冲突,以便同时使用 Vcl.Graphics TBitmapWinapi.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

huangapple
  • 本文由 发表于 2023年4月17日 20:02:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76034954.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定