Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Copy Constructors Pin
TFrancis28-Jan-04 7:43
TFrancis28-Jan-04 7:43 
GeneralRe: Copy Constructors Pin
Nitron28-Jan-04 7:16
Nitron28-Jan-04 7:16 
Generalstatistical mode Pin
act_x28-Jan-04 6:17
act_x28-Jan-04 6:17 
GeneralRe: statistical mode Pin
David Crow28-Jan-04 10:46
David Crow28-Jan-04 10:46 
GeneralRe: statistical mode Pin
act_x28-Jan-04 12:24
act_x28-Jan-04 12:24 
GeneralMFC and Windows 2000 Pin
Don Burton28-Jan-04 5:59
Don Burton28-Jan-04 5:59 
GeneralRe: MFC and Windows 2000 Pin
Anonymous29-Jan-04 5:34
Anonymous29-Jan-04 5:34 
GeneralSubclassing Problem Pin
Dennis L28-Jan-04 5:55
Dennis L28-Jan-04 5:55 
Hi All!

I have subclass an edit control and all works fine.
The problem is when the compiling ends I have two warnings:

warning C4312: 'type cast' : conversion from 'LONG' to 'WNDPROC' of greater size.

warning C4311: 'type cast' : pointer truncation from 'LRESULT (__stdcall *)(HWND,UINT,WPARAM,LPARAM)' to 'LONG'.

These warnings are from this code:

OldEditControl = (WNDPROC)SetWindowLong(GetDlgItem(hwnd, IDC_NUM), GWL_WNDPROC, (LONG)EditProc);

The strange is that on Win98 I don't have these warnings.
I have them on WinXP

What's wrong?
GeneralNot receiving Registered Broadcast Message Pin
Member 81460328-Jan-04 5:49
Member 81460328-Jan-04 5:49 
GeneralRe: Not receiving Registered Broadcast Message Pin
Diddy28-Jan-04 11:15
Diddy28-Jan-04 11:15 
GeneralRe: Not receiving Registered Broadcast Message Pin
Member 81460329-Jan-04 2:08
Member 81460329-Jan-04 2:08 
GeneralTCHAR buffer size Pin
TomD228-Jan-04 5:48
TomD228-Jan-04 5:48 
GeneralRe: TCHAR buffer size Pin
Michael P Butler28-Jan-04 5:51
Michael P Butler28-Jan-04 5:51 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 6:05
TomD228-Jan-04 6:05 
GeneralRe: TCHAR buffer size Pin
Michael P Butler28-Jan-04 6:17
Michael P Butler28-Jan-04 6:17 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 6:35
TomD228-Jan-04 6:35 
GeneralRe: TCHAR buffer size Pin
Anonymous28-Jan-04 7:53
Anonymous28-Jan-04 7:53 
GeneralRe: TCHAR buffer size Pin
TomD228-Jan-04 21:21
TomD228-Jan-04 21:21 
GeneralButtons with alternative message Pin
satcat28-Jan-04 5:45
satcat28-Jan-04 5:45 
GeneralRe: Buttons with alternative message Pin
valikac28-Jan-04 7:54
valikac28-Jan-04 7:54 
GeneralRe: Buttons with alternative message Pin
satcat28-Jan-04 8:01
satcat28-Jan-04 8:01 
GeneralRe: Buttons with alternative message Pin
l a u r e n28-Jan-04 8:19
l a u r e n28-Jan-04 8:19 
GeneralRe: Buttons with alternative message Pin
satcat29-Jan-04 0:14
satcat29-Jan-04 0:14 
QuestionHow to load Cyrillic strings from resources? Pin
george ivanov28-Jan-04 5:04
george ivanov28-Jan-04 5:04 
AnswerRe: How to load Cyrillic strings from resources? Pin
toxcct28-Jan-04 5:21
toxcct28-Jan-04 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.