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

C / C++ / MFC

 
GeneralRe: Sleep in Button Click Pin
Albert Holguin27-Apr-11 18:26
professionalAlbert Holguin27-Apr-11 18:26 
GeneralRe: Sleep in Button Click Pin
Albert Holguin27-Apr-11 18:25
professionalAlbert Holguin27-Apr-11 18:25 
GeneralRe: Sleep in Button Click Pin
varunpandeyengg27-Apr-11 20:31
varunpandeyengg27-Apr-11 20:31 
GeneralRe: Sleep in Button Click Pin
Albert Holguin28-Apr-11 8:34
professionalAlbert Holguin28-Apr-11 8:34 
QuestionHow do i find last created file in a specified directory? Pin
yogish29326-Apr-11 21:55
yogish29326-Apr-11 21:55 
AnswerRe: How do i find last created file in a specified directory? Pin
_AnsHUMAN_ 26-Apr-11 22:19
_AnsHUMAN_ 26-Apr-11 22:19 
GeneralRe: How do i find last created file in a specified directory? Pin
yogish29326-Apr-11 23:34
yogish29326-Apr-11 23:34 
QuestionFindWindowex in MFC Application Pin
irudayam26-Apr-11 21:14
irudayam26-Apr-11 21:14 
Hi ,
I have used the following code to send Message to a vb window,
While using this code in win32 application i can able to find the child window and no problem with my code,
But while using this in an mfc application cant able to find the child window and
it is always null.
Please help to solve my problem,
Thanks in advance.
HWND FormhWnd;
long uClickYes;
long Res ;
long lngresult;
UINT sendtxtmsg;
sendtxtmsg = RegisterWindowMessage("SEND.TEXT.MSG");
LPCSTR strCaption ;
LPCSTR strClass ;
LPCSTR TextBoxCaption ;
strCaption = "WINDOWNAME";
strClass = "ThunderRT6TextBox";
TextBoxCaption = "";
FormhWnd = ::FindWindow(NULL, "WINDOWNAME");
CString txtval;
txtval.Format("%d",sendtxtmsg);
if (FormhWnd != NULL) 
{
HWND findchild;
AfxMessageBox("FormhWnd not null");
findchild = FindWindowEx(FormhWnd, NULL, strClass, NULL);
if (findchild != NULL)
{
AfxMessageBox("findchild not null");
FILE *fp;
fp=fopen("sendmsg.txt","w");
fputs("joined Channel..",fp);
fclose(fp);
Res = ::SendMessage(findchild, sendtxtmsg, 1,0);
}
else
{
AfxMessageBox("findchild null");
}
else
{
AfxMessageBox ("PARENT WINDOW NULL");
}

nick

AnswerRe: FindWindowex in MFC Application Pin
Richard MacCutchan26-Apr-11 22:25
mveRichard MacCutchan26-Apr-11 22:25 
AnswerRe: FindWindowex in MFC Application Pin
Hans Dietrich27-Apr-11 5:56
mentorHans Dietrich27-Apr-11 5:56 
GeneralRe: FindWindowex in MFC Application Pin
irudayam27-Apr-11 19:18
irudayam27-Apr-11 19:18 
Questionconversion from CString to char Pin
VCProgrammer26-Apr-11 20:58
VCProgrammer26-Apr-11 20:58 
AnswerRe: conversion from CString to char Pin
వేంకటనారాయణ(venkatmakam)26-Apr-11 21:16
వేంకటనారాయణ(venkatmakam)26-Apr-11 21:16 
AnswerRe: conversion from CString to char Pin
«_Superman_»26-Apr-11 22:36
professional«_Superman_»26-Apr-11 22:36 
AnswerRe: conversion from CString to char Pin
varunpandeyengg27-Apr-11 0:38
varunpandeyengg27-Apr-11 0:38 
Questionhow to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
mathivanaan26-Apr-11 19:13
mathivanaan26-Apr-11 19:13 
AnswerRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
vishal_kapoor26-Apr-11 20:33
vishal_kapoor26-Apr-11 20:33 
AnswerRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
markkuk26-Apr-11 23:03
markkuk26-Apr-11 23:03 
QuestionRe: how to run linux executable file in winows? pls how to install and run in cross compiler cygwin? Pin
Niklas L27-Apr-11 7:46
Niklas L27-Apr-11 7:46 
QuestionHow to save changes made to VC tool box Pin
Cold_Fearing_Bird25-Apr-11 22:13
Cold_Fearing_Bird25-Apr-11 22:13 
AnswerRe: How to save changes made to VC tool box Pin
«_Superman_»25-Apr-11 22:35
professional«_Superman_»25-Apr-11 22:35 
GeneralRe: How to save changes made to VC tool box Pin
Cold_Fearing_Bird25-Apr-11 23:10
Cold_Fearing_Bird25-Apr-11 23:10 
QuestionPlease help me for EnableWindow of main dialog. Pin
Le@rner25-Apr-11 19:37
Le@rner25-Apr-11 19:37 
AnswerRe: Please help me for EnableWindow of main dialog. Pin
«_Superman_»25-Apr-11 19:50
professional«_Superman_»25-Apr-11 19:50 
AnswerRe: Please help me for EnableWindow of main dialog. Pin
Richard MacCutchan25-Apr-11 22:04
mveRichard MacCutchan25-Apr-11 22:04 

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.