|
-
March 6th, 2001, 03:06 AM
#1
directory reading
I need in an elder project (developed under VCC 1.5 I can t change it for some dll reasons)the content of a directory
CListBox ListBox;
LPSTR Path;
int Zero;
CString DirName;
Path = "C:\\TRANSFER\\*.*";
UINT attr = 0x0000;
ListBox.Dir(attr,Path);
Zero = ListBox.GetCount();
But I got always NULL so where is the bug??
Any help is welcomed
Long
-
March 6th, 2001, 03:20 AM
#2
Re: directory reading
Hi,
CListBox *ListBox;
ListBox = (CListBox *)GetDlgItem(IDC_LIST1);
/* IDC_LIST1 is the ID of the list box that you have created in the dialog */
LPSTR Path;
int Zero = 0;
Path = "C:\\Transfer\\*.*";
UINT attr = 0x0000;
ListBox->Dir(attr,Path);
Zero = ListBox->GetCount();
[b]Let me know if that helped.
Visit http://www.geocities.com/contactgirish/homepage.html for some VC++ Links & Notes.If you have time, you can sign the guest book there.
Regards,
V.Girish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|