GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Jul-2004, 19:02
w332 w332 is offline
New Member
 
Join Date: Jul 2004
Posts: 4
w332 is on a distinguished road
Question

program stops after error


hello (again) almost done with the same program for wich i asked a question
more early, at the start of my code i make it copy itself to another directory
after this the other file is added to bootup but does not run corect after
boot.. i think this is cuz of the piece of code in the beginning that gives an
error (cuz the second time the file has another name) so what im basicly
askin for is how do i make the code go on after a error..

this is the piece of code :

CPP / C++ / C Code:
const char *src = "\\myprograminstal.exe";
ifstream input(src,ios::binary);

const char *dst = "c:\myprogram\\myprogram.exe";
ofstream output(dst,ios::binary);

output <<input.rdbuf();
help very much apreciated !
Last edited by dsmith : 16-Jul-2004 at 19:17. Reason: please use [c] & [/c] for syntax highlighting.
 
 

Recent GIDBlogMeeting the populace by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
link error? pablowablo C++ Forum 14 19-Jun-2004 10:00
OpenGL always reports error mvt OpenGL Programming 2 04-Jun-2004 06:42
Need help with a C program (Long) McFury C Programming Language 3 29-Apr-2004 20:06
Visual C++ 6 Compiler error vip3r C++ Forum 2 13-Apr-2004 14:34
error during program rjd72285 C++ Forum 0 11-Nov-2003 18:49

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:11.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.