Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: database heros please help me? Pin
J51219823-Apr-06 21:35
J51219823-Apr-06 21:35 
AnswerRe: database heros please help me? Pin
includeh104-Apr-06 0:37
includeh104-Apr-06 0:37 
GeneralRe: database heros please help me? Pin
J51219824-Apr-06 19:51
J51219824-Apr-06 19:51 
QuestionHow to handle lost focus in DrawItem of Button Pin
Sarvan AL3-Apr-06 20:59
Sarvan AL3-Apr-06 20:59 
AnswerRe: How to handle lost focus in DrawItem of Button Pin
includeh103-Apr-06 21:15
includeh103-Apr-06 21:15 
AnswerRe: How to handle lost focus in DrawItem of Button Pin
Hamid_RT3-Apr-06 21:32
Hamid_RT3-Apr-06 21:32 
GeneralRe: How to handle lost focus in DrawItem of Button Pin
Sarvan AL3-Apr-06 22:01
Sarvan AL3-Apr-06 22:01 
Questionerror C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
giftsana3-Apr-06 20:57
giftsana3-Apr-06 20:57 
I have a module in VC++6.0. it enumerates all desktop items and displays each item.tested this module on Win 2000 and Win XP.

After displaying each window i want to close each launched desktop item window by doing the following:
CWnd* pWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(pWnd)
{ pWnd->PostMessage(WM_CLOSE,0,0);
}

but i get the foll error:
error C2065: 'CWnd' : undeclared identifier

i tried including the foll in the stdafx.h file
#define _WIN32_WINNT 0x0500
#include <windows.h>

still i get the same error.

What do i need to include to overcome this problem?
Kindly reply at the earliest.

Sincerely
Giftsana
AnswerRe: error C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
includeh103-Apr-06 21:04
includeh103-Apr-06 21:04 
AnswerRe: error C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
Cedric Moonen3-Apr-06 21:04
Cedric Moonen3-Apr-06 21:04 
Questionerror C2065: 'CWnd' : undeclared identifier Pin
giftsana3-Apr-06 20:55
giftsana3-Apr-06 20:55 
AnswerRe: error C2065: 'CWnd' : undeclared identifier Pin
sunit53-Apr-06 21:01
sunit53-Apr-06 21:01 
Questiongaming software Pin
includeh103-Apr-06 20:44
includeh103-Apr-06 20:44 
AnswerRe: gaming software Pin
Vasudevan Deepak Kumar3-Apr-06 20:52
Vasudevan Deepak Kumar3-Apr-06 20:52 
GeneralRe: gaming software Pin
includeh103-Apr-06 20:58
includeh103-Apr-06 20:58 
Questionsockets Pin
jpms3-Apr-06 20:17
jpms3-Apr-06 20:17 
AnswerRe: sockets Pin
sunit53-Apr-06 20:22
sunit53-Apr-06 20:22 
GeneralRe: sockets Pin
jpms3-Apr-06 20:55
jpms3-Apr-06 20:55 
GeneralRe: sockets Pin
YaronNir3-Apr-06 21:46
YaronNir3-Apr-06 21:46 
GeneralRe: sockets Pin
jpms4-Apr-06 1:03
jpms4-Apr-06 1:03 
QuestionHow to get the "module" associated with a thread, as the "ProcessExplorer" dose? Pin
davidforlc3-Apr-06 20:10
davidforlc3-Apr-06 20:10 
AnswerRe: How to get the "module" associated with a thread, as the "ProcessExplorer" dose? Pin
Stephen Hewitt3-Apr-06 20:33
Stephen Hewitt3-Apr-06 20:33 
AnswerRe: How to get the "module" associated with a thread, as the "ProcessExplorer" dose? Pin
includeh103-Apr-06 20:37
includeh103-Apr-06 20:37 
AnswerRe: How to get the &quot;module&quot; associated with a thread, as the &quot;ProcessExplorer&quot; dose? Pin
Stephen Hewitt4-Apr-06 20:31
Stephen Hewitt4-Apr-06 20:31 
QuestionImplementing SMTP in MFC Pin
QuickDeveloper3-Apr-06 19:52
QuickDeveloper3-Apr-06 19:52 

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.