L
Lindsay
I'm getting some strange warnings when I compile:
pointer truncation from 'HMENU' to 'unsigned int'
The line in question is:
AppendMenu(hMenu,MF_STRING|MF_POPUP,UINT(hStyle),"Style");
(where hStyle is HMENU type)
This line is exactly the same as a line in another app I have but that one
doesn't give a warning.
Other warnings are:
pointer truncation from 'LRESULT (__stdcall *)(HWND,UINT,WPARAM,LPARAM)' to
'LONG'
conversion from 'LONG' to 'WNDPROC' of greater size
pointer truncation from 'WNDPROC' to 'LONG'
The lines in question are:
WNDPROC
_Wallpaper=(WNDPROC)SetWindowLong(hwnd,GWL_WNDPROC,(LONG)WallpaperProc);
SetWindowLong(GetDlgItem(hwndDlg,IDC_WALLPAPER),GWL_WNDPROC,(LONG)_Wallpaper);
Why should this be? My code works and the app functions as expected. I'm
sure I shouldn't get those warnings though.
pointer truncation from 'HMENU' to 'unsigned int'
The line in question is:
AppendMenu(hMenu,MF_STRING|MF_POPUP,UINT(hStyle),"Style");
(where hStyle is HMENU type)
This line is exactly the same as a line in another app I have but that one
doesn't give a warning.
Other warnings are:
pointer truncation from 'LRESULT (__stdcall *)(HWND,UINT,WPARAM,LPARAM)' to
'LONG'
conversion from 'LONG' to 'WNDPROC' of greater size
pointer truncation from 'WNDPROC' to 'LONG'
The lines in question are:
WNDPROC
_Wallpaper=(WNDPROC)SetWindowLong(hwnd,GWL_WNDPROC,(LONG)WallpaperProc);
SetWindowLong(GetDlgItem(hwndDlg,IDC_WALLPAPER),GWL_WNDPROC,(LONG)_Wallpaper);
Why should this be? My code works and the app functions as expected. I'm
sure I shouldn't get those warnings though.