Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::stack questions (2 of them) Pin
Joao Vaz2-Aug-02 5:57
Joao Vaz2-Aug-02 5:57 
GeneralVisual Studio .NET Editor Question! Simple! Pin
Ryan B.2-Aug-02 5:33
Ryan B.2-Aug-02 5:33 
GeneralCTreeCtrl Collapsing Message Pin
jparsons2-Aug-02 5:16
jparsons2-Aug-02 5:16 
GeneralRe: CTreeCtrl Collapsing Message Pin
Nish Nishant2-Aug-02 5:19
sitebuilderNish Nishant2-Aug-02 5:19 
GeneralRe: CTreeCtrl Collapsing Message Pin
jparsons2-Aug-02 5:22
jparsons2-Aug-02 5:22 
GeneralRe: CTreeCtrl Collapsing Message Pin
Nish Nishant2-Aug-02 5:29
sitebuilderNish Nishant2-Aug-02 5:29 
Generalhelp needed...!!! Pin
drmzunlimited2-Aug-02 4:54
drmzunlimited2-Aug-02 4:54 
GeneralRe: help needed...!!! Pin
chq122-Aug-02 5:24
chq122-Aug-02 5:24 
use this function,
bool LocalInterface::DisplayDir(CListCtrl& list, LPSTR lpszdirname)
{
// instantiate a CFindFind object
CFileFind tempFind;
char tempFileFind[200];
sprintf(tempFileFind,"%s\\*.*",lpszdirname);
// check whether there is file existing in the
// current directory
BOOL IsFinded=(BOOL)tempFind.FindFile(tempFileFind);
int nItem = 0;
char lpBuffer[80];
GetCurrentDirectory(80, lpBuffer);
int length = strlen((LPCTSTR) lpBuffer);
// insert a return picture in first line
if(length>3)
{
list.InsertItem(nItem, "..",2);
nItem++;
}
// if file exists in directory, get files and directory
// in the directory show them in the list
while(IsFinded)
{

IsFinded=(BOOL)tempFind.FindNextFile();
// check whether it is '.' or '..'
// if not, then get this file or directory
if(!tempFind.IsDots())
{
char foundFileName[200];
strcpy(foundFileName,tempFind.GetFileName().GetBuffer(200));
// if it is directoy
if(tempFind.IsDirectory())
{
// TRACE("\ndir = %s\n", DirList);
list.InsertItem(nItem, foundFileName,1);
list.SetItemText(nItem, 2, "0");
list.SetItemText(nItem, 3, "dir");
}
// if it is a file
else
{
CString filesize;
DWORD n = tempFind.GetLength();
filesize.Format("%d",n);
list.InsertItem(nItem, foundFileName,0);
list.SetItemText(nItem, 2, filesize);
list.SetItemText(nItem, 3, "file");
}
// get create time of file
FILETIME filetime;
tempFind.GetCreationTime(&filetime);
CString strfiletime = GetFileTime(filetime);
list.SetItemText(nItem,1,strfiletime);
nItem++;
}
}
return true;
}
GeneralRe: help needed...!!! Pin
drmzunlimited2-Aug-02 7:56
drmzunlimited2-Aug-02 7:56 
QuestionWhere is MS VRML Viewer ? Pin
yarp2-Aug-02 4:51
yarp2-Aug-02 4:51 
GeneralDialogs without MFC Pin
James Spibey2-Aug-02 4:33
James Spibey2-Aug-02 4:33 
GeneralRe: Dialogs without MFC Pin
Chris Losinger2-Aug-02 4:50
professionalChris Losinger2-Aug-02 4:50 
GeneralRe: Dialogs without MFC Pin
James Spibey2-Aug-02 5:01
James Spibey2-Aug-02 5:01 
GeneralRe: Dialogs without MFC Pin
Joel Lucsy2-Aug-02 8:19
Joel Lucsy2-Aug-02 8:19 
GeneralRe: Dialogs without MFC Pin
James Spibey2-Aug-02 12:27
James Spibey2-Aug-02 12:27 
QuestionHow to trap Command Window that appears on execution of a normal VC++ programme or Application... Pin
Pankaj Singh2-Aug-02 4:22
Pankaj Singh2-Aug-02 4:22 
AnswerRe: How to trap Command Window that appears on execution of a normal VC++ programme or Application... Pin
Nish Nishant2-Aug-02 5:23
sitebuilderNish Nishant2-Aug-02 5:23 
GeneralXML Tree Control MFC Pin
MyEden2-Aug-02 4:03
MyEden2-Aug-02 4:03 
GeneralVisual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 3:55
Anonymous2-Aug-02 3:55 
GeneralRe: Visual C++ and Exponential Numbers Pin
Tomasz Sowinski2-Aug-02 4:03
Tomasz Sowinski2-Aug-02 4:03 
GeneralRe: Visual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 4:36
Anonymous2-Aug-02 4:36 
GeneralRe: Visual C++ and Exponential Numbers Pin
Tomasz Sowinski2-Aug-02 5:03
Tomasz Sowinski2-Aug-02 5:03 
GeneralRe: Visual C++ and Exponential Numbers Pin
Anonymous2-Aug-02 5:48
Anonymous2-Aug-02 5:48 
GeneralStrange Compile errors Pin
ns2-Aug-02 3:37
ns2-Aug-02 3:37 
GeneralRe: Strange Compile errors Pin
Roger Allen2-Aug-02 6:21
Roger Allen2-Aug-02 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.