Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory leak again? Pin
User 5838524-Aug-04 20:00
User 5838524-Aug-04 20:00 
GeneralUsing cursor as Icons in toolbar Pin
mango_lier4-Aug-04 13:03
mango_lier4-Aug-04 13:03 
GeneralRe: Using cursor as Icons in toolbar Pin
Antti Keskinen5-Aug-04 6:37
Antti Keskinen5-Aug-04 6:37 
Generaldisable the Task manager Pin
X20404-Aug-04 12:30
X20404-Aug-04 12:30 
GeneralRe: disable the Task manager Pin
Antti Keskinen5-Aug-04 6:40
Antti Keskinen5-Aug-04 6:40 
GeneralRe: disable the Task manager Pin
Bo Hunter5-Aug-04 12:17
Bo Hunter5-Aug-04 12:17 
GeneralRe: disable the Task manager Pin
ThatsAlok5-Aug-04 22:15
ThatsAlok5-Aug-04 22:15 
GeneralMenu check button ... Pin
smack_2k24-Aug-04 10:11
smack_2k24-Aug-04 10:11 
QuestionHow to send mouse/keyboard to a background app? Pin
Member 6253944-Aug-04 9:00
Member 6253944-Aug-04 9:00 
AnswerRe: How to send mouse/keyboard to a background app? Pin
crondeemon4-Aug-04 9:48
crondeemon4-Aug-04 9:48 
GeneralRe: How to send mouse/keyboard to a background app? Pin
Member 6253944-Aug-04 10:00
Member 6253944-Aug-04 10:00 
AnswerRe: How to send mouse/keyboard to a background app? Pin
crondeemon4-Aug-04 10:03
crondeemon4-Aug-04 10:03 
QuestionHow to NULL arrays? Pin
CreepingFeature4-Aug-04 8:13
CreepingFeature4-Aug-04 8:13 
AnswerRe: How to NULL arrays? Pin
User 66584-Aug-04 8:45
User 66584-Aug-04 8:45 
AnswerRe: How to NULL arrays? Pin
digwizfox4-Aug-04 8:49
digwizfox4-Aug-04 8:49 
GeneralRe: How to NULL arrays? Pin
CreepingFeature4-Aug-04 20:46
CreepingFeature4-Aug-04 20:46 
GeneralRe: How to NULL arrays? Pin
digwizfox5-Aug-04 5:55
digwizfox5-Aug-04 5:55 
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


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.