Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalreading from serial port Pin
doneirik12-Jan-05 23:37
doneirik12-Jan-05 23:37 
GeneralRe: reading from serial port Pin
Blake Miller13-Jan-05 4:38
Blake Miller13-Jan-05 4:38 
Questionhow to get a running application Pin
spiced12-Jan-05 23:31
spiced12-Jan-05 23:31 
AnswerRe: how to get a running application Pin
Selvam R12-Jan-05 23:42
professionalSelvam R12-Jan-05 23:42 
GeneralRe: how to get a running application Pin
spiced13-Jan-05 0:16
spiced13-Jan-05 0:16 
GeneralRe: how to get a running application Pin
ThatsAlok13-Jan-05 0:51
ThatsAlok13-Jan-05 0:51 
GeneralRe: how to get a running application Pin
spiced13-Jan-05 17:07
spiced13-Jan-05 17:07 
GeneralRe: how to get a running application Pin
ThatsAlok13-Jan-05 18:47
ThatsAlok13-Jan-05 18:47 
Do this thing

I think you m_TaskList is type CStringArray change it to CPtrArray.

and Create a Struct

struct MyArry
{
CString WindowName;
CWnd Wnd;
};


and Instead

spiced wrote:
::enumwndfn(CWnd * wnd)
{CString s;
wnd->GetWindowText(s);
m_TaskList.AddString(s);
}


use this thing

::enumwndfn(CWnd * wnd)
{
 CString s;
//get Window name
 wnd->GetWindowText(s); 

//declare Variable of MyArry
 MyArry tmp;
//Store Window name
 tmp.WindowName=s;
 tmp.Wnd=*wnd;

//Store it in Array
 m_TaskList.add(tmp);

}



"I Think this Will Help"
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralApplication fails in Release mode.... Pin
Jagadeesh VN12-Jan-05 23:27
Jagadeesh VN12-Jan-05 23:27 
GeneralRe: Application fails in Release mode.... Pin
PJ Arends13-Jan-05 6:55
professionalPJ Arends13-Jan-05 6:55 
GeneralThanks Blake Miller: CreateProcess and process groups (2) Pin
ionzarate12-Jan-05 23:16
ionzarate12-Jan-05 23:16 
GeneralGet Sector!! !! Pin
LiYS12-Jan-05 22:57
LiYS12-Jan-05 22:57 
GeneralRe: Get Sector!! !! Pin
Selvam R12-Jan-05 23:06
professionalSelvam R12-Jan-05 23:06 
GeneralRe: Get Sector!! !! Pin
LiYS12-Jan-05 23:13
LiYS12-Jan-05 23:13 
GeneralRe: Get Sector!! !! Pin
Anonymous12-Jan-05 23:32
Anonymous12-Jan-05 23:32 
Generalrequest to all Pin
Anonymous12-Jan-05 22:11
Anonymous12-Jan-05 22:11 
GeneralRe: request to all Pin
ThatsAlok13-Jan-05 0:30
ThatsAlok13-Jan-05 0:30 
Generalto alok Pin
Anonymous13-Jan-05 1:39
Anonymous13-Jan-05 1:39 
GeneralRe: to alok Pin
ThatsAlok13-Jan-05 2:17
ThatsAlok13-Jan-05 2:17 
GeneralRe: request to all Pin
David Crow13-Jan-05 3:55
David Crow13-Jan-05 3:55 
GeneralGUI capturing Pin
kedar.dave12-Jan-05 22:01
kedar.dave12-Jan-05 22:01 
GeneralRe: GUI capturing Pin
Selvam R12-Jan-05 23:02
professionalSelvam R12-Jan-05 23:02 
GeneralRe: GUI capturing Pin
kedar.dave13-Jan-05 17:27
kedar.dave13-Jan-05 17:27 
GeneralRevision Control System and Tools Pin
George Ionescu12-Jan-05 21:40
George Ionescu12-Jan-05 21:40 
QuestionFilesss.... Help? Pin
nutkase12-Jan-05 21:25
nutkase12-Jan-05 21:25 

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.