Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 2:35
johnjitu1-Jun-09 2:35 
QuestionRe: String obtained from getwindowtext(); Pin
«_Superman_»1-Jun-09 1:11
professional«_Superman_»1-Jun-09 1:11 
AnswerRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 2:18
johnjitu1-Jun-09 2:18 
GeneralRe: String obtained from getwindowtext(); Pin
CPallini1-Jun-09 2:35
mveCPallini1-Jun-09 2:35 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:27
johnjitu1-Jun-09 3:27 
AnswerRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:13
David Crow1-Jun-09 3:13 
GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:33
johnjitu1-Jun-09 3:33 
GeneralRe: String obtained from getwindowtext(); Pin
David Crow1-Jun-09 3:43
David Crow1-Jun-09 3:43 
johnjitu wrote:
m_slot.GetWindowText(hWnd, szString, sizeof(szString));

cpp(1422) : error C2065: 'hWnd' : undeclared identifier


That was just an example. It's up to you to provide whatever name you've given the window handle. Roll eyes | :rolleyes: C2065 is one of the easiest compiler errors to fix.

Since you are using MFC, try:

m_slot.GetWindowText(szString, sizeof(szString));
or
::GetWindowText(m_slot.GetSafeHwnd(), szString, sizeof(szString));


"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: String obtained from getwindowtext(); Pin
johnjitu1-Jun-09 3:48
johnjitu1-Jun-09 3:48 
QuestionBehaviour of CreateThread compared to AfxBeginThread Pin
sunny_vc1-Jun-09 0:10
sunny_vc1-Jun-09 0:10 
AnswerRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Naveen1-Jun-09 0:41
Naveen1-Jun-09 0:41 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
sunny_vc1-Jun-09 0:44
sunny_vc1-Jun-09 0:44 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Saurabh.Garg1-Jun-09 0:54
Saurabh.Garg1-Jun-09 0:54 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Naveen1-Jun-09 1:09
Naveen1-Jun-09 1:09 
GeneralRe: Behaviour of CreateThread compared to AfxBeginThread Pin
Rajesh R Subramanian2-Nov-10 7:04
professionalRajesh R Subramanian2-Nov-10 7:04 
Questionwho recommand book about ood? Pin
Archy_Yu31-May-09 23:21
Archy_Yu31-May-09 23:21 
Questionprogramming GSM network with c language Pin
agetina31-May-09 22:05
agetina31-May-09 22:05 
AnswerRe: programming GSM network with c language Pin
CPallini31-May-09 22:20
mveCPallini31-May-09 22:20 
AnswerRe: programming GSM network with c language Pin
emrahustun31-May-09 22:28
emrahustun31-May-09 22:28 
AnswerRe: programming GSM network with c language Pin
randomrockers31-May-09 22:33
randomrockers31-May-09 22:33 
QuestionMouse Event Pin
Davitor31-May-09 21:48
Davitor31-May-09 21:48 
AnswerRe: Mouse Event Pin
«_Superman_»31-May-09 21:50
professional«_Superman_»31-May-09 21:50 
GeneralRe: Mouse Event Pin
Davitor31-May-09 23:08
Davitor31-May-09 23:08 
GeneralRe: Mouse Event Pin
David Crow1-Jun-09 3:17
David Crow1-Jun-09 3:17 
AnswerRe: Mouse Event Pin
CPallini31-May-09 21:51
mveCPallini31-May-09 21:51 

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.