Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help me in removing these warnings Pin
neha.agarwal2719-Jul-07 0:34
neha.agarwal2719-Jul-07 0:34 
GeneralRe: help me in removing these warnings Pin
rp_suman18-Jul-07 22:51
rp_suman18-Jul-07 22:51 
GeneralRe: help me in removing these warnings Pin
CPallini18-Jul-07 22:55
mveCPallini18-Jul-07 22:55 
GeneralRe: help me in removing these warnings Pin
jhwurmbach19-Jul-07 2:53
jhwurmbach19-Jul-07 2:53 
GeneralRe: help me in removing these warnings Pin
rp_suman19-Jul-07 17:53
rp_suman19-Jul-07 17:53 
QuestionMFC/Win32 Printing - setting page/paper size ? Pin
ana_v12318-Jul-07 21:18
ana_v12318-Jul-07 21:18 
AnswerRe: MFC/Win32 Printing - setting page/paper size ? Pin
thammadi18-Jul-07 22:34
thammadi18-Jul-07 22:34 
Questionapplication crash in tree control Pin
sheetal_0618-Jul-07 21:18
sheetal_0618-Jul-07 21:18 
The following is a code snippet for checking the subdirectories.
This code is crashing in the highligted line when sStr is "C:\".If it is "D:\" or "E:" it is working.

void CBatchPrintDlg::ChkForSubDir( CString sStr, HTREEITEM hTree )
{
struct _finddata_t c_file;
long hFile;

::SetCurrentDirectory((LPCTSTR)sStr);

if( (hFile = _findfirst( "*.*", &c_file )) != -1L )
{
if ( IsDirectory ( c_file.attrib ) )
InsertItemTOTree( (LPCTSTR)c_file.name, hTree );
//m_tree.InsertItem((LPCTSTR)c_file.name, hTree );

while( _findnext( hFile, &c_file ) == 0 )Confused | :confused:
{
if ( IsDirectory ( c_file.attrib ) )
{
InsertItemTOTree( (LPCTSTR)c_file.name, hTree );
//m_tree.InsertItem((LPCTSTR)c_file.name, hTree );
//break;
}
}
_findclose( hFile );
}
}

Please help.


Thanks.
AnswerRe: application crash in tree control Pin
Rage19-Jul-07 1:28
professionalRage19-Jul-07 1:28 
GeneralRe: application crash in tree control Pin
sheetal_0619-Jul-07 17:54
sheetal_0619-Jul-07 17:54 
AnswerRe: application crash in tree control Pin
David Crow19-Jul-07 2:58
David Crow19-Jul-07 2:58 
AnswerRe: application crash in tree control Pin
Hamid_RT31-Jul-07 9:15
Hamid_RT31-Jul-07 9:15 
QuestionReading unicode files in C++ not MFC Pin
Programm3r18-Jul-07 21:09
Programm3r18-Jul-07 21:09 
AnswerRe: Reading UDL File Pin
Perspx18-Jul-07 21:19
Perspx18-Jul-07 21:19 
QuestionRe: Reading UDL File Pin
Programm3r18-Jul-07 21:54
Programm3r18-Jul-07 21:54 
AnswerRe: Reading UDL File Pin
John R. Shaw19-Jul-07 2:23
John R. Shaw19-Jul-07 2:23 
AnswerRe: Reading unicode files in C++ not MFC Pin
Matthew Faithfull19-Jul-07 4:01
Matthew Faithfull19-Jul-07 4:01 
AnswerRe: Reading unicode files in C++ not MFC Pin
Hamid_RT31-Jul-07 9:13
Hamid_RT31-Jul-07 9:13 
QuestionI want to load Bitmap image on DialogBox. Pin
Atul2318-Jul-07 20:49
Atul2318-Jul-07 20:49 
AnswerRe: I want to load Bitmap image on DialogBox. Pin
Perspx18-Jul-07 21:24
Perspx18-Jul-07 21:24 
QuestionRe: I want to load Bitmap image on DialogBox. Pin
Khathar12-Aug-07 18:39
Khathar12-Aug-07 18:39 
QuestionRe: I want to load Bitmap image on DialogBox. Pin
Mark Salsbery19-Jul-07 5:32
Mark Salsbery19-Jul-07 5:32 
AnswerRe: I want to load Bitmap image on DialogBox. Pin
Hamid_RT31-Jul-07 9:10
Hamid_RT31-Jul-07 9:10 
QuestionGet history of any internet browser Pin
revanth198518-Jul-07 20:41
revanth198518-Jul-07 20:41 
AnswerRe: Get history of any internet browser Pin
David Crow19-Jul-07 3:04
David Crow19-Jul-07 3:04 

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.