Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreateIpForwardEntry Pin
Martijn14-Aug-01 5:46
Martijn14-Aug-01 5:46 
GeneralIHTMLEditHost in combination with CHtmlView Pin
Juergen Woelke14-Aug-01 4:35
Juergen Woelke14-Aug-01 4:35 
GeneralSocket receive performance Pin
sato14-Aug-01 3:51
sato14-Aug-01 3:51 
GeneralSocket receive performance Pin
sato14-Aug-01 3:49
sato14-Aug-01 3:49 
GeneralDockable application needed ! Pin
14-Aug-01 3:39
suss14-Aug-01 3:39 
GeneralRe: Dockable application needed ! Pin
Paul A. Howes14-Aug-01 4:02
Paul A. Howes14-Aug-01 4:02 
Generaladding binary files Pin
lina14-Aug-01 3:39
lina14-Aug-01 3:39 
GeneralRe: adding binary files Pin
Chris Losinger14-Aug-01 4:03
professionalChris Losinger14-Aug-01 4:03 
there are dozens of fun ways to do this.

the first, like you say, is to just issue a command line command to do it. see the "spawn" function.

the second, C, way to do it is like this:
(off the top of my head, so you'll have to fix any bugs by yourself)
FILE *fp1 = fopen("a:\\test1.txt", "rb");
FILE *fp2 = fopen("a:\\test2.txt", "rb");
FILE *fp3 = fopen("a:\\test3.txt", "wb");

while (!feof(fp1))
{
   BYTE c;
   c = fgetc(fp1);
   fputc(fp3, c);
}

while (!feof(fp2))
{
   BYTE c;
   c = fgetc(fp2);
   fputc(fp3, c);
}
fclose(fp1);
fclose(fp2);
fclose(fp3);


of course this is horribly inefficient. you'd be much better reading and writing large chunks (4K chunks, for example) instead of single bytes (see fread and fwrite).

then there are the C++ ways to do it, with CFile, or the io stream stuff.

all of it is 100% fun.

-c

------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
GeneralGlobal data problems/can't access variable Pin
14-Aug-01 3:15
suss14-Aug-01 3:15 
GeneralRe: Global data problems/can't access variable Pin
#realJSOP14-Aug-01 3:58
professional#realJSOP14-Aug-01 3:58 
GeneralRe: How to get the pointer to the view Pin
14-Aug-01 21:49
suss14-Aug-01 21:49 
GeneralRe: How to get the pointer to the view Pin
#realJSOP15-Aug-01 1:43
professional#realJSOP15-Aug-01 1:43 
GeneralRe: How to get the pointer to the view Pin
Bret Faller15-Aug-01 10:06
Bret Faller15-Aug-01 10:06 
GeneralRe: Global data problems/can't access variable Pin
Carsten Kemper5-Nov-01 13:09
Carsten Kemper5-Nov-01 13:09 
QuestionHow to make an automatically resizable dialogbar Pin
Kiddxin14-Aug-01 0:36
Kiddxin14-Aug-01 0:36 
AnswerRe: How to make an automatically resizable dialogbar Pin
Tomasz Sowinski14-Aug-01 0:48
Tomasz Sowinski14-Aug-01 0:48 
GeneralRe: How to make an automatically resizable dialogbar Pin
Kiddxin14-Aug-01 15:16
Kiddxin14-Aug-01 15:16 
GeneralChange mouse cursor Pin
14-Aug-01 0:23
suss14-Aug-01 0:23 
GeneralRe: Change mouse cursor Pin
<k>Andreas Hoheisel14-Aug-01 2:46
<k>Andreas Hoheisel14-Aug-01 2:46 
GeneralRe: Change mouse cursor Pin
<k>Andreas Hoheisel14-Aug-01 2:48
<k>Andreas Hoheisel14-Aug-01 2:48 
GeneralProblems accessing function Pin
13-Aug-01 21:48
suss13-Aug-01 21:48 
GeneralRe: Problems accessing function Pin
Michael Dunn13-Aug-01 22:42
sitebuilderMichael Dunn13-Aug-01 22:42 
GeneralRezise control Pin
13-Aug-01 21:26
suss13-Aug-01 21:26 
GeneralRe: Rezise control Pin
Tomasz Sowinski14-Aug-01 1:43
Tomasz Sowinski14-Aug-01 1:43 
GeneralRegistry problem Pin
yamini13-Aug-01 20:58
yamini13-Aug-01 20:58 

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.