Click here to Skip to main content
16,022,538 members

Comments by Sathya Bhat (Top 2 by date)

Sathya Bhat 12-Oct-11 0:25am View    
Hi all,
I also found the issue in my coding. I solved it using timers.
Thanks all
Sathya Bhat 11-Oct-11 2:23am View    
Hi there,
I am sorry for coming back after so much delay. Thanks for the interest in my question. I am adding code here for review.

void CCA_ToolDlg::OnBnClickedPlay()
{
HANDLE hFind;
string strPrefix;
WIN32_FIND_DATA FindData;
char pattern[150];
sprintf(pattern, "%s\\*.jpg", ImagePath);
sprintf(ImagePath, "%s\\", ImagePath);
hFind = FindFirstFile(pattern, &FindData);
char *filename;
filename = (char *)calloc(2000,sizeof(char));
do
{
strPrefix = string(ImagePath);
strPrefix += FindData.cFileName;
sprintf(filename,"%s",strPrefix.c_str());
m_picCtrl.Load(CString(_T(filename)));
}while(FindNextFile(hFind, &FindData));
FindClose(hFind);
free(filename);
}

This is the function when i click on play button.
Now, when i am inside the do loop, All my dialog doesnt respond to any user inputs. I am using PictureCrtl to display the images.
So, how I can handle other button functions when this function is running.
Thanks all.