No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Lecturer/Researcher
16 Posted Topics
Hey all, stuck on abit of a problem. I am outputting afew strings to a text file. However when I check the text file it has been automatically split into 2 lines. Is there anyway to force the output to remain in one line or what is the reason for … | |
Hey all, i would really appreciate some help with abit of code i'm stuck on. I am trying to read data from text files in this way: 1. Open text file 2. Read in the first line from the text file that doesnt start with "/" 3. change this char … | |
Hey all, I am having trouble with the ""std_lib_facilities.h" header. I am getting the complier message: error C2614: 'String' : illegal member initialization: 'string' is not a base or member I am going through Bjarne Stroustrup's - Programming Principles and Practice Using C++ and he suggests that if you cant … | |
Hey all, writing up some code to copy a string from a text file and extract numbers from the string. What I have so far is: [CODE]#include <iostream> #include <fstream> using namespace std; int main(int argc, char *argv[]){ ifstream in("test.txt"); if(!in){ cout << "Cannot open file."; exit (1); } char … | |
Hey all, need abit of help bringing a .exe window which has been previously open in my program.On a button click the program window should be brought to the front with "Alt+S" to be pressed. I am using MSVC 6 MFC and my code looks like: [ICODE]void CEvolveTraffic::OnButton() { // … | |
Hey all, I am trying to check if a .exe file is open, if it is open bring it to foreground, if it is not open open .exe file and bring to foreground. The code I have written doesnt seem to recognise if the program is open or not as … | |
Hey All, I am having a problem with the function "SetForegroundWindow". From googling I am readin that it does not work for MSVC 6 MFC on a vista machine???? I am trying to write code that will check if a window is open, if the window is open bring the … | |
Hey All, another problem :) I am trying to write code that on hitting a button will open and program, a "ok" window appears when program is open so I want the code to keystroke RETURN. I am using MSVC 6 MFC. I have gotten (painfuly) to the stage where … | |
Hey all, I am having some trouble trying to open a dialog window. Firstly I am using MFC in MSVC 6. I have a main dialog window and I am trying to open a second dialog window by clicking on a button("second") in the main dialog window. When I am … ![]() | |
Hey all, need some help on little issue im having. I have 2 programs and I am writing an interface to link the 2 of them in MC VC 6 MFC. There is an input text file to input data for the second program. My dialog interface saves the input … | |
Hey all, I'm sure this is a stupid question but I have looked and I cant find :( . i am creating a dialog resource in MFC and i cant find the Controls toolbox. The first time i created a dialog resource the controls toolbox came up automatically but (stupidly) … ![]() | |
Hey all, I have just updated to MS VS 2008 Pro. I am having some cross over problems from MS VC 6. Below is a simple example: [CODE]#include<afx.h> #include<iostream> using namespace std; int main() { CString s; CString sa("Strings "); CString sb = CString("are easy "); CString sc = "in … | |
Hey all, I am having trouble with a program I am trying to write. Basicially I have a 2 sets of 9 "if statements". These if statements give me the parameters for 3 functions. The problem I am having is that the I am getting errors that are telling me … | |
Hey all, I am trying to first write an array to a text text file, delete the array, then later in the program I need to use the array again so I need to open the text file and read the array and call it the same name as before. … | |
Hey all, I'm new to C++ and struggling to write a program. I am used to writing in VBA and Mathlab but because I need to run a long run simulation have to rewrite my program in C++. What a am trying to do is if I have a list … | |
Hey all, I'm new to C++, much more at home with mathlab or VBA so this is probably a simple problem for you guys. I am writing a program and I want to change values at the end of loop but keep answers from previous loop, i.e. in other programs … |
The End.