TalosBlack
Programmer
When i double click on the exe of my program I get a window to come up with a black screen and a flashing cursor. It seems as if the program is in some kind of infinite loop before i output anything to the screen. However, when i am in C++ (MS Visual Studio 6) and hit ctrl 5 ... or the execute program icon my program runs as exspected querrying the user for information and performs it's operation. I tried deleting the last build and rebuilding everything and still have the same problem. Any suggestion on why that might be or what to do would be great.
Thanks,
John
The following is my code until the first cout<< which never occurs when i double click the .exe.
//some headers
//Function Prototypes
//Global Variables
ofstream out("FilesToUpdate.txt");
ofstream outInvalid("InvalidLinks.txt");
ifstream in("Data.txt");
ifstream inPath("Paths.txt");
void main( void )
{
//variable declaration
char initialpath[MAX_PATH];
char temp[25];
do
{
inPath.getline(temp,15);
}while((strncmp(temp, "PATHS TO CHECK",14)) != 0);
char junk[MAX_PATH];
inPath.getline(junk, MAX_PATH);
//Loop that ins files
while(!inPath.eof())
{
char ATversion[10];
inPath.getline(ATversion, MAX_PATH);
inPath.getline(initialpath, MAX_PATH);
inPath.getline(pathofC, MAX_PATH);
out<<"\n************"<<endl;
while(OutputFlag != 0)
{//Encase of invalid entry
if(OutputFlag == 1)
break;
cout<<"Would you like ..."<<endl;
and so on... Note: the flags are properly intialized. As shown by working properly when i'm in c++. I didn't include the headers and variable declaration because that gets lengthy.
Thanks
Thanks,
John
The following is my code until the first cout<< which never occurs when i double click the .exe.
//some headers
//Function Prototypes
//Global Variables
ofstream out("FilesToUpdate.txt");
ofstream outInvalid("InvalidLinks.txt");
ifstream in("Data.txt");
ifstream inPath("Paths.txt");
void main( void )
{
//variable declaration
char initialpath[MAX_PATH];
char temp[25];
do
{
inPath.getline(temp,15);
}while((strncmp(temp, "PATHS TO CHECK",14)) != 0);
char junk[MAX_PATH];
inPath.getline(junk, MAX_PATH);
//Loop that ins files
while(!inPath.eof())
{
char ATversion[10];
inPath.getline(ATversion, MAX_PATH);
inPath.getline(initialpath, MAX_PATH);
inPath.getline(pathofC, MAX_PATH);
out<<"\n************"<<endl;
while(OutputFlag != 0)
{//Encase of invalid entry
if(OutputFlag == 1)
break;
cout<<"Would you like ..."<<endl;
and so on... Note: the flags are properly intialized. As shown by working properly when i'm in c++. I didn't include the headers and variable declaration because that gets lengthy.
Thanks