[WIN32] Warning bizarre sur SetWindowLongPtr()
Voilà, comme le titre l'indique, j'ai un warning que je ne comprends pas trop sous VC7.1 lorsque je compile le code suivant :
Code:
1 2 3 4 5 6 7 8
|
{
InputStreamProp* is;
...
is = GetISP ();
SetWindowLongPtr (hwnd, GWLP_USERDATA, (LONG_PTR) is);
...
} |
Et j'obtiens :
Code:
warning C4244: 'fonction' : conversion de 'LONG_PTR' en 'LONG', perte possible de données
Ce que dit MSDN à propos de SetWindowLongPtr (extrait) :
Citation:
This function supersedes the SetWindowLong function. To write code that is compatible with both 32-bit and 64-bit versions of Microsoft® Windows®, use SetWindowLongPtr.
Si quelqu'un a une explication...
.