Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing around params VC++6.0 VC# Pin
Stephane Rodriguez.8-May-03 1:29
Stephane Rodriguez.8-May-03 1:29 
GeneralRe: Passing around params VC++6.0 VC# Pin
NHM8-May-03 3:18
NHM8-May-03 3:18 
GeneralRe: Passing around params VC++6.0 VC# Pin
Stephane Rodriguez.8-May-03 3:29
Stephane Rodriguez.8-May-03 3:29 
GeneralRe: Passing around params VC++6.0 VC# Pin
NHM8-May-03 3:45
NHM8-May-03 3:45 
GeneralRe: Passing around params VC++6.0 VC# Pin
Stephane Rodriguez.8-May-03 3:51
Stephane Rodriguez.8-May-03 3:51 
GeneralWS_CLIPSIBLINGS......... Pin
Neha8-May-03 0:15
Neha8-May-03 0:15 
GeneralRe: WS_CLIPSIBLINGS......... Pin
jhaga8-May-03 2:59
professionaljhaga8-May-03 2:59 
GeneralCFile Pin
macmac387-May-03 23:19
macmac387-May-03 23:19 
Why this generates "test.pmjaaaaYYYYY" as output??
  <br />
<br />
<br />
<br />
<br />
   char* szBuffer = NULL;<br />
   int i = 0;<br />
<br />
   CFile f;<br />
          <br />
   if( f.Open ("F:\\test\\id.txt", CFile::modeRead ) ){  <br />
	   try {                           // Get the size of the file.    <br />
		   i = f.GetLength();        // Create buffer to hold filedata.    <br />
		   szBuffer = new char[i];   // Read in the file data <br />
		      <br />
		   if(szBuffer != NULL)<br />
			   <br />
		   f.Read(szBuffer, i);       <br />
		   f.Close();                  // Close the file. <br />
<br />
            } <br />
	   <br />
	   catch (CFileException *e)  <br />
	   {    <br />
		   AfxMessageBox ("Error!");    <br />
		   e->Delete();  <br />
	   } // end TRY-CATCH<br />
<br />
   } // end IF<br />
   <br />
     CString csPath = szBuffer;<br />
	  <br />
     SaveStream(csPath);<br />
<br />
	 if(szBuffer != NULL)  <br />
          delete [] szBuffer;<br />


Thanks, Mark
GeneralRe: CFile Pin
Neville Franks8-May-03 0:08
Neville Franks8-May-03 0:08 
GeneralRe: CFile Pin
macmac388-May-03 0:36
macmac388-May-03 0:36 
GeneralRe: CFile Pin
Neville Franks8-May-03 1:56
Neville Franks8-May-03 1:56 
GeneralRe: CFile Pin
Hari Krishnan (Noida)8-May-03 0:46
Hari Krishnan (Noida)8-May-03 0:46 
GeneralCarray doubt Pin
doctorpi7-May-03 22:38
doctorpi7-May-03 22:38 
GeneralRe: Carray doubt Pin
Dr-Kuulun7-May-03 22:54
Dr-Kuulun7-May-03 22:54 
GeneralRe: Carray doubt Pin
Cedric Moonen7-May-03 22:57
Cedric Moonen7-May-03 22:57 
GeneralRe: Carray doubt Pin
jhwurmbach7-May-03 23:15
jhwurmbach7-May-03 23:15 
GeneralRe: Carray doubt Pin
David Crow8-May-03 3:29
David Crow8-May-03 3:29 
GeneralRefresh problem... Pin
Neha7-May-03 22:24
Neha7-May-03 22:24 
GeneralRe: Refresh problem... Pin
Ernest Laurentin8-May-03 3:59
Ernest Laurentin8-May-03 3:59 
GeneralBitmap processing Pin
sooyewguan7-May-03 21:33
sooyewguan7-May-03 21:33 
GeneralRe: Bitmap processing Pin
Chris Losinger8-May-03 3:07
professionalChris Losinger8-May-03 3:07 
Generalsmall ques about handles Pin
r i s h a b h s7-May-03 18:19
r i s h a b h s7-May-03 18:19 
GeneralRe: small ques about handles Pin
_crs_7-May-03 19:51
_crs_7-May-03 19:51 
GeneralRe: small ques about handles Pin
r i s h a b h s7-May-03 21:36
r i s h a b h s7-May-03 21:36 
GeneralRe: small ques about handles Pin
David Crow8-May-03 3:33
David Crow8-May-03 3:33 

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.