Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
?
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
?
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
?
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
?
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
?
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
?
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
VC6 and VS2005 a problem!!!
?
Problem:
In VC6, this code goes through, and the executable
:: Setdlgitemtext (AfxGetMainWnd (), m_hwnd,idc_time,strtime);
(This is the dialog in the program, the code in a global thread function, set the contents of an edit box).
But the same code, the same programming environment in the VC8, this code is not OK. First is the run error (compile also can), I estimate the first parameter may be the problem, and because this is a global function in the code setdlgitemtext is prompted should be replaced with SETDLGITEMTEXTW.
Excuse me, how can I change the code in this situation?
Answer:
:: Setdlgitemtext (AfxGetMainWnd ()->m_hwnd,idc_time,strtime);
Change to this: Setdlgitemtext (AfxGetApp ()->m_pmainwnd->m_hwnd,idc_time, strtime);
Minor changes VC2005 does not support AfxGetMainWnd ()->m_hwnd to get the HWND
VS does not support getting window handles (go) through AfxGetMainWnd ()