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

C / C++ / MFC

 
GeneralRe: Adding Items Pin
Hamid_RT14-May-06 21:44
Hamid_RT14-May-06 21:44 
GeneralRe: Adding Items Pin
VinayCool14-May-06 22:24
VinayCool14-May-06 22:24 
GeneralRe: Adding Items Pin
Russell'14-May-06 22:29
Russell'14-May-06 22:29 
GeneralRe: Adding Items Pin
VinayCool14-May-06 22:31
VinayCool14-May-06 22:31 
GeneralRe: Adding Items Pin
Russell'14-May-06 23:11
Russell'14-May-06 23:11 
GeneralRe: Adding Items Pin
VinayCool15-May-06 0:24
VinayCool15-May-06 0:24 
GeneralRe: Adding Items Pin
Russell'15-May-06 0:39
Russell'15-May-06 0:39 
GeneralRe: Adding Items Pin
VinayCool15-May-06 1:04
VinayCool15-May-06 1:04 
Hi,

i have used f10 and check the exact line where the error generates

status.Create(IDD_INDEX_STATUS_DIALOG);



305: status.Create(IDD_INDEX_STATUS_DIALOG);
0040A83B push 0
0040A83D push 84h
0040A842 lea ecx,[status]
0040A848 call CDialog::Create (00409e36)

what will be cause ??
------------------------------



void Index :: readFiles (sortentry* e)
{
FILE *fp;
char *s;
static int fnum = 0;
int wds = 0;

if (e != NULL) {
readFiles (e->left);
fp = fopen (e->filename, "r");
fnum++;

CStatusDlg status;
status.Create(IDD_INDEX_STATUS_DIALOG);

if ((s = (char*)strrchr(e->filename, '/')) == NULL)
{
ASSERT(status.GetSafeHwnd() != NULL);
ASSERT(status.m_OUT.GetSafeHwnd() != NULL);
ASSERT(e != NULL);
ASSERT(e->filename != "");

status.m_OUT.AddString(e->filename);
}
else
{
ASSERT(status.GetSafeHwnd() != NULL);
ASSERT(status.m_OUT.GetSafeHwnd() != NULL);
ASSERT(e != NULL);
ASSERT(e->filename != "");
status.m_OUT.AddString(e->filename);
}

// cout <<" " << s+1;
insert (fnum, e->filename);
if (fp) {
wds = getWord (fp,fnum);
}
else {
cerr << "File: " << e->filename << " can't open" << endl;
return;
}
cout << " (" << wds << " words)" << endl;
fclose (fp);
free (e->filename);
readFiles(e->right);
delete e;
}
}
GeneralRe: Adding Items Pin
Russell'15-May-06 1:13
Russell'15-May-06 1:13 
GeneralRe: Adding Items Pin
Russell'15-May-06 1:16
Russell'15-May-06 1:16 
GeneralRe: Adding Items Pin
VinayCool15-May-06 1:24
VinayCool15-May-06 1:24 
GeneralRe: Adding Items Pin
Russell'15-May-06 1:30
Russell'15-May-06 1:30 
GeneralRe: Adding Items Pin
VinayCool15-May-06 1:51
VinayCool15-May-06 1:51 
GeneralRe: Adding Items Pin
Russell'15-May-06 2:04
Russell'15-May-06 2:04 
GeneralRe: Adding Items Pin
Russell'14-May-06 23:06
Russell'14-May-06 23:06 
GeneralRe: Adding Items Pin
VinayCool14-May-06 23:26
VinayCool14-May-06 23:26 
GeneralRe: Adding Items Pin
Eytukan15-May-06 0:03
Eytukan15-May-06 0:03 
GeneralRe: Adding Items Pin
VinayCool15-May-06 0:06
VinayCool15-May-06 0:06 
GeneralRe: Adding Items Pin
Russell'15-May-06 0:16
Russell'15-May-06 0:16 
GeneralRe: Adding Items Pin
Eytukan15-May-06 0:17
Eytukan15-May-06 0:17 
GeneralRe: Adding Items Pin
Hamid_RT15-May-06 4:12
Hamid_RT15-May-06 4:12 
AnswerRe: Adding Items Pin
_AnsHUMAN_ 14-May-06 21:00
_AnsHUMAN_ 14-May-06 21:00 
AnswerRe: Adding Items Pin
Maximilien15-May-06 3:04
Maximilien15-May-06 3:04 
GeneralRe: Adding Items Pin
Hamid_RT15-May-06 4:13
Hamid_RT15-May-06 4:13 
AnswerRe: Adding Items Pin
David Crow15-May-06 6:21
David Crow15-May-06 6:21 

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.