April 9th, 1999, 07:51 PM
Please help!
1. When and where should i send message to button for show icon/bitmap on it? I did it in OnInitDialog(), but there's no effect. I did it before DoModal() - but of course, run-time error appears. Icon for button is always defined in resource file.
2. Somewhere i declare that:
struct FILEINFO{...};
CArray<FILEINFO,FILEINFO> m_ptArray;
So, this is dynamically growing dimension consist of FILEINFO structures. Then, when i try to Add() elements to m_ptArray, i cannot access to any element except first ! That is, if i wrote
FILEINFO somewhat=m_ptArray[2]......
Then i've got some kind of bad data, looks like as it is not initialized. In debugger, this [2] even doesn't exist. What's wrong i did?
I use VC 5.0, win95.
Thank you.
1. When and where should i send message to button for show icon/bitmap on it? I did it in OnInitDialog(), but there's no effect. I did it before DoModal() - but of course, run-time error appears. Icon for button is always defined in resource file.
2. Somewhere i declare that:
struct FILEINFO{...};
CArray<FILEINFO,FILEINFO> m_ptArray;
So, this is dynamically growing dimension consist of FILEINFO structures. Then, when i try to Add() elements to m_ptArray, i cannot access to any element except first ! That is, if i wrote
FILEINFO somewhat=m_ptArray[2]......
Then i've got some kind of bad data, looks like as it is not initialized. In debugger, this [2] even doesn't exist. What's wrong i did?
I use VC 5.0, win95.
Thank you.