Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to NULL arrays? Pin
Antti Keskinen5-Aug-04 6:51
Antti Keskinen5-Aug-04 6:51 
General2 q's about non-mfc apps Pin
Archer2824-Aug-04 8:12
Archer2824-Aug-04 8:12 
GeneralRe: 2 q's about non-mfc apps Pin
PJ Arends4-Aug-04 18:11
professionalPJ Arends4-Aug-04 18:11 
GeneralInstallation Package Question Pin
Red Sunday4-Aug-04 7:49
Red Sunday4-Aug-04 7:49 
GeneralRe: Installation Package Question Pin
palbano4-Aug-04 7:56
palbano4-Aug-04 7:56 
Generalmfc concatenating files Pin
ns4-Aug-04 7:47
ns4-Aug-04 7:47 
GeneralRe: mfc concatenating files Pin
palbano4-Aug-04 7:53
palbano4-Aug-04 7:53 
GeneralRe: mfc concatenating files Pin
David Crow4-Aug-04 7:56
David Crow4-Aug-04 7:56 
Something like:

CFile file1("file1.txt", CFile::modeRead), 
      file2("file2.txt", CFile::modeRead), 
      fileTemp("file12.txt", CFile::modeWrite | CFile::modeCreate);
DWORD dwBytesRead;
BYTE  buffer[4096]
 
do
{
    dwBytesRead = file1.Read(buffer, sizeof(buffer));
    fileTemp.Write(buffer, dwBytesRead);
} while (dwBytesRead > 0);
 
file1.Close();
 
do
{
    dwBytesRead = file2.Read(buffer, sizeof(buffer));
    fileTemp.Write(buffer, dwBytesRead);
} while (dwBytesRead > 0);
 
file2.Close();
fileTemp.Close();
CFile::Remove("file1.txt");
CFile::Remove("file2.txt");



"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: mfc concatenating files Pin
ns5-Aug-04 1:52
ns5-Aug-04 1:52 
GeneralIcon problem Pin
doctorpi4-Aug-04 7:19
doctorpi4-Aug-04 7:19 
GeneralPaste into existing 256 color icon Pin
bikram singh5-Aug-04 7:15
bikram singh5-Aug-04 7:15 
Generallibrary question Pin
mcsherry4-Aug-04 7:04
mcsherry4-Aug-04 7:04 
GeneralRe: library question Pin
Jaime Stuardo4-Aug-04 7:38
Jaime Stuardo4-Aug-04 7:38 
GeneralRe: library question Pin
Chris Losinger4-Aug-04 8:54
professionalChris Losinger4-Aug-04 8:54 
GeneralMinimum Build with Visual Studio Pin
digwizfox4-Aug-04 6:35
digwizfox4-Aug-04 6:35 
Generaltry/catch Variable Scope Question Pin
Steve Thresher4-Aug-04 6:03
Steve Thresher4-Aug-04 6:03 
GeneralRe: try/catch Variable Scope Question Pin
Nitron4-Aug-04 7:36
Nitron4-Aug-04 7:36 
GeneralRe: try/catch Variable Scope Question Pin
palbano4-Aug-04 7:49
palbano4-Aug-04 7:49 
GeneralRe: try/catch Variable Scope Question Pin
Steve Thresher4-Aug-04 10:07
Steve Thresher4-Aug-04 10:07 
GeneralRe: try/catch Variable Scope Question Pin
palbano4-Aug-04 7:43
palbano4-Aug-04 7:43 
GeneralRe: try/catch Variable Scope Question Pin
Tim Smith4-Aug-04 15:26
Tim Smith4-Aug-04 15:26 
GeneralRe: try/catch Variable Scope Question Pin
Ryan Binns4-Aug-04 18:46
Ryan Binns4-Aug-04 18:46 
QuestionNewbie: Can I do this? Pin
cgriffin4-Aug-04 5:52
cgriffin4-Aug-04 5:52 
AnswerRe: Newbie: Can I do this? Pin
palbano4-Aug-04 7:16
palbano4-Aug-04 7:16 
AnswerRe: Newbie: Can I do this? Pin
digwizfox4-Aug-04 7:31
digwizfox4-Aug-04 7:31 

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.