XE4 There is no overloaded version GetTextExtentPoint32A

[dcc32 Error] dxGrDate.pas(1402): E2250 There is no overloaded version of 'GetTextExtentPoint32' that can be called with these arguments

 

GetTextExtentPoint32A(Handle, PWideChar(ACaption), Length(ACaption), Size);

 

change to 

  var
    mysize:TSize;

 

GetTextExtentPoint32(Handle,PWideChar(ACaption),Length(ACaption),mySize);

 

用的size和系统size重名了,导致编译错误

posted on 2020-12-28 18:45  癫狂编程  阅读(148)  评论(0编辑  收藏  举报

导航

好的代码像粥一样,都是用时间熬出来的