Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRestore focus to child window in CScrollView Pin
Sara Burns6-Dec-02 10:54
Sara Burns6-Dec-02 10:54 
GeneralWindows 2000 VS. NT Pin
Shay Harel6-Dec-02 10:41
Shay Harel6-Dec-02 10:41 
QuestionWhen do you build a DLL? Pin
Nitron6-Dec-02 10:16
Nitron6-Dec-02 10:16 
AnswerRe: When do you build a DLL? Pin
Paul M Watt6-Dec-02 10:24
mentorPaul M Watt6-Dec-02 10:24 
GeneralRe: When do you build a DLL? Pin
Nitron6-Dec-02 10:40
Nitron6-Dec-02 10:40 
GeneralRe: When do you build a DLL? Pin
Paul M Watt6-Dec-02 10:47
mentorPaul M Watt6-Dec-02 10:47 
GeneralRe: When do you build a DLL? Pin
Nitron6-Dec-02 10:56
Nitron6-Dec-02 10:56 
Generalcompilation error of the day ... Pin
Maximilien6-Dec-02 9:47
Maximilien6-Dec-02 9:47 
I just made my mainframe class inherite from another simple class ( standalone, class, does not inherite from anything else ), and I get these errors :

  // prototypes...
  afx_msg void OnStandardToolBar(NMTOOLBAR* pnmh, LRESULT* plRes);	
  afx_msg void OnViewToolBar    (NMTOOLBAR* pnmh, LRESULT* plRes);

...
  // errors on those...
  ON_NOTIFY(TBN_DROPDOWN, ITB_STANDARD_TOOLBAR, OnStandardToolBar)
  ON_NOTIFY(TBN_DROPDOWN, ITB_VIEW_TOOLBAR, OnViewToolBar)
...

D:\\MainFrm.cpp(287) : error C2440: 'type cast' : cannot convert from 'void (__thiscall CMainFrame::*)(struct tagNMTOOLBARA *,long *)' to 'void (__thiscall CCmdTarget::*)(struct tagNMHDR *,long *)'
        Pointers to members have different representations; cannot cast between them
D:\\MainFrm.cpp(288) : error C2440: 'type cast' : cannot convert from 'void (__thiscall CMainFrame::*)(struct tagNMTOOLBARA *,long *)' to 'void (__thiscall CCmdTarget::*)(struct tagNMHDR *,long *)'
        Pointers to members have different representations; cannot cast between them


I'm assuming it's name conflict somewhere ...

Any Ideas ?

Max
P.S. I hate fridays!
GeneralRe: compilation error of the day ... Pin
Alvaro Mendez6-Dec-02 9:58
Alvaro Mendez6-Dec-02 9:58 
GeneralRe: compilation error of the day ... Pin
Maximilien6-Dec-02 10:31
Maximilien6-Dec-02 10:31 
GeneralRe: compilation error of the day ... Pin
Michael Dunn6-Dec-02 16:44
sitebuilderMichael Dunn6-Dec-02 16:44 
GeneralHelp File Pin
act_x6-Dec-02 8:55
act_x6-Dec-02 8:55 
GeneralRe: Help File Pin
lucy6-Dec-02 9:33
lucy6-Dec-02 9:33 
GeneralRe: Help File Pin
act_x6-Dec-02 9:43
act_x6-Dec-02 9:43 
GeneralRe: Help File Pin
Paul M Watt6-Dec-02 10:27
mentorPaul M Watt6-Dec-02 10:27 
GeneralThank you all Pin
act_x6-Dec-02 10:39
act_x6-Dec-02 10:39 
GeneralRe: Help File Pin
Gaul7-Dec-02 19:14
Gaul7-Dec-02 19:14 
GeneralRe: Help File Pin
lucy9-Dec-02 2:21
lucy9-Dec-02 2:21 
GeneralHWND to a UIThread Pin
David_Leikis6-Dec-02 8:35
David_Leikis6-Dec-02 8:35 
GeneralRe: HWND to a UIThread Pin
KaЯl7-Dec-02 1:59
KaЯl7-Dec-02 1:59 
GeneralProblem with auto_ptr !!! Pin
Luc Bergeron6-Dec-02 8:30
Luc Bergeron6-Dec-02 8:30 
GeneralRe: Problem with auto_ptr !!! Pin
Alvaro Mendez6-Dec-02 9:50
Alvaro Mendez6-Dec-02 9:50 
GeneralRe: Problem with auto_ptr !!! Pin
Luc Bergeron6-Dec-02 10:01
Luc Bergeron6-Dec-02 10:01 
QuestionDynamic CEdit can't call DoDataExchange()? Pin
dazinith6-Dec-02 8:20
dazinith6-Dec-02 8:20 
AnswerRe: Dynamic CEdit can't call DoDataExchange()? Pin
Sara Burns6-Dec-02 11:00
Sara Burns6-Dec-02 11:00 

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.