Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionText Updation Pin
Abhijeet Pathak11-Jul-07 9:56
Abhijeet Pathak11-Jul-07 9:56 
QuestionRe: Text Updation Pin
Mark Salsbery11-Jul-07 10:19
Mark Salsbery11-Jul-07 10:19 
AnswerRe: Text Updation Pin
David Crow11-Jul-07 10:28
David Crow11-Jul-07 10:28 
AnswerRe: Text Updation Pin
Abhijeet Pathak11-Jul-07 10:48
Abhijeet Pathak11-Jul-07 10:48 
GeneralRe: Text Updation Pin
Mark Salsbery11-Jul-07 11:03
Mark Salsbery11-Jul-07 11:03 
Questionifstream - reading same data over and over Pin
moonraker92811-Jul-07 9:34
moonraker92811-Jul-07 9:34 
AnswerRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 10:23
Mark Salsbery11-Jul-07 10:23 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:00
moonraker92811-Jul-07 11:00 
the file is opened for reading in at the very top of the file where i initialize of the variables in th header class. i am assuming that this happens only once... these are the lines:

code:
--------

extern springCore* springApp;<br />
<br />
extern int window_height, window_width;<br />
extern int wf_window_id;<br />
extern void Reshape(int w, int h);<br />
extern SensorArray sensorarray;<br />
extern int current_sensor_index;<br />
<br />
// counters for playing audio and video files<br />
int loop_1, loop_2, loop_3, i = 0;<br />
<br />
// globals<br />
int dg_scenario::debug = 0;<br />
int dg_scenario::wf = 1;<br />
int dg_scenario::video = 0;<br />
double len = 5.0;<br />
<br />
// mouse sensor button values<br />
extern int left_down, right_down, middle_down;<br />
<br />
// init ofstream and ifstream and their variables<br />
ofstream dg_scenario::dg_video("replay.txt", ios::out); <-- for reading INTO the file<br />
ifstream dg_scenario::dg_replay("replay.txt", ios::in); <-- for reading OUT OF the file<br />
char tool_name_1[256];<br />
char tool_name_2[256];<br />
// store point3Ds, dynamics, tool state, and sensor state<br />
double x,y,z = 0.0;<br />
int d,ts,ss = 0;<br />
Point3D xyz; // new position for the sensor


--
dg

GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:27
moonraker92811-Jul-07 11:27 
GeneralRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 11:37
Mark Salsbery11-Jul-07 11:37 
QuestionGetting the Tag Property to work for me Pin
InOut.NET11-Jul-07 7:53
InOut.NET11-Jul-07 7:53 
QuestionUSB device message detector Pin
Beveloper11-Jul-07 7:00
Beveloper11-Jul-07 7:00 
AnswerRe: USB device message detector Pin
ksrameshkanth11-Jul-07 21:59
ksrameshkanth11-Jul-07 21:59 
QuestionCut a bitmap under GDI+ Pin
Chen-XuNuo11-Jul-07 6:36
Chen-XuNuo11-Jul-07 6:36 
AnswerRe: Cut a bitmap under GDI+ Pin
Mark Salsbery11-Jul-07 9:04
Mark Salsbery11-Jul-07 9:04 
GeneralRe: Cut a bitmap under GDI+ Pin
Chen-XuNuo11-Jul-07 19:36
Chen-XuNuo11-Jul-07 19:36 
GeneralRe: Cut a bitmap under GDI+ Pin
Mark Salsbery12-Jul-07 5:08
Mark Salsbery12-Jul-07 5:08 
QuestionHelp aout paint none-client area Pin
kcynic11-Jul-07 6:22
kcynic11-Jul-07 6:22 
AnswerRe: Help aout paint none-client area Pin
DevMentor.org12-Jul-07 12:01
DevMentor.org12-Jul-07 12:01 
GeneralRe: Help aout paint none-client area Pin
kcynic13-Jul-07 1:00
kcynic13-Jul-07 1:00 
GeneralRe: Help aout paint none-client area Pin
DevMentor.org13-Jul-07 12:10
DevMentor.org13-Jul-07 12:10 
GeneralRe: Help aout paint none-client area Pin
kcynic13-Jul-07 12:26
kcynic13-Jul-07 12:26 
GeneralRe: Help aout paint none-client area Pin
DevMentor.org13-Jul-07 20:46
DevMentor.org13-Jul-07 20:46 
QuestionConvert Int to Byte Pin
simoncoul11-Jul-07 6:19
simoncoul11-Jul-07 6:19 
AnswerRe: Convert Int to Byte Pin
David Crow11-Jul-07 7:21
David Crow11-Jul-07 7:21 

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.