本文介绍了什么时候WPARAM从签名变为无符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 在Delphi 6中 WPARAM  WPARAM = Longint; 

在Delphi 2010中 WPARAM 被声明为签名:

  WPARAM = INT_PTR; 

但在XE2中,它被声明为unsigned:

  WPARAM = UINT_PTR; 

官方是:

  typedef UINT_PTR WPARAM; 

与XE2匹配。




$有没有人知道更改是针对XE还是XE2?

解决方案

Delphi XE WPARAM = INT_PTR; 所以更改是在XE2中引入的。


In Delphi 6 WPARAM is declared as being signed:

WPARAM = Longint;

In Delphi 2010 WPARAM is declared as being signed:

WPARAM = INT_PTR;

But in XE2 it is declared as being unsigned:

WPARAM = UINT_PTR;

The official Windows definition is:

typedef UINT_PTR WPARAM;

This matches with XE2.


Does anyone know whether the change was made for XE or for XE2?

解决方案

In Delphi XE WPARAM = INT_PTR; so the change was introduced in XE2.

这篇关于什么时候WPARAM从签名变为无符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 10:11