[dev-c++] Won't run any programs at all.

Discussion in 'General Programming Support' started by Samael88, May 2, 2009.

  1. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    My dev c++ has gone completely insane or something.

    I can compile my programs, no problem there.
    But when I press run, nothing happens.
    When I press compile and run, it compiles but does not run.
    I have to go to the directory where it puts the output files and run it from there.

    Anyone here got any ideas of what can be causing this?
    Solutions, please?

    I have tried to reinstall it once already and I can do it again if nessecary:(

    +REP to helpers:thup:
     
  2. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    Ok, this is rare, but. BUMP:p

    I still have not found any solution to this, can't find anything in the options of dev-c++.

    This is not a window that blinks and show, this is programs that have worked fine before.

    I have tried reinstalling dev-c++, but that did not do any good:(

    Please help me with this if you can!

    I am currently doing this-->:banghead:
     
  3. Weegee

    Weegee Go Weegee!

    Ratings:
    +101 / 0 / -0
    get Visual C++ or maybe a different compiler? Not to sure I got rid of dev-c++ eons ago :p
     
  4. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    That is out of the question. I have developing a game with dev-c++ and I want to end it with dev-c++ aswell:)

    I have checked the firewall, it's not that doing it:(
    I have tried reinstalling it 3times now and that is not a solution.
    Anyone got a solution to this?
     
  5. Weegee

    Weegee Go Weegee!

    Ratings:
    +101 / 0 / -0
    maybe u damaged something on ur computer that dev-c++ uses or maybe (im just guessing wildly here but) you have a virus??? I dont know lol im a clueless idiot really :p
     
  6. Samuraid

    Samuraid Advisor

    Ratings:
    +80 / 0 / -0
    Have you tried resetting the Dev-CPP settings to default?

    You could try removing the Dev-CPP settings files in your user account (make a back-up copy of them first though), which will cause Dev-CPP to load with default options the next time around.

    The settings files are stored in:
    C:\Documents and Settings\<username>\Application Data\Dev-Cpp\

    or in vista\windows7:
    C:\Users\<username>\AppData\Roaming\Dev-Cpp\
     
    • Like Like x 2
  7. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    It's not a virus. I went thru a thorough search for viruses yesterday.
    I ran Nod, I ran MBAM, and I went thru the computer manually, checking every folder and the entire registry, I do this once a month to make sure that the computer is virus free. Hence I know every thing that should be and should not be on it, both on the discs and in the registry;)

    Those files are removed during the uninstall of the program:(
    I even tried checking the box that says "Remove all previous configuration data" during the installation:(
     
  8. _whelp

    _whelp New Member

    Ratings:
    +54 / 0 / -0
    It actually runs, but it is instantly ended, because it needs to be paused.

    Try this:
    Code:
    //Put this at the end of the main function
    cout << "Press anything to exit";
    cin.sync();
    cin.get();
    
     
  9. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    Thanks _whelp. That did not help at all, since I am not that new to c++:eek:
    If it had been that I would have found the answer with google, but beacuse there are to many beginners who have asked that question in forums that is the only one that comes up:(

    There does not seem to be any problems with dev,
    I think that I have checked all the settings for dev.
    It is not my anti-virus programs that causes it.
    I have tried reinstalling dev a few times with different settings,
    I have tried different versions of dev.
    I have even been in the system registry and into windows to make a real clean sweap when deleting dev once, to make sure that I got all files affiliated with the program:(

    If anyone got something that could help, or have any idea of what could be causing this, that would be really helpful. I really don't want to do a format C: just beacuse of this:(
     
  10. Slapshot136

    Slapshot136 Divide et impera

    Ratings:
    +483 / 2 / -0
  11. DBZ-123

    DBZ-123 Active Member

    Ratings:
    +19 / 0 / -0
    Have you tried running as administrator?

    Maybe get zip folder of the program then an exe
     
  12. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    @Slapshot: I would if it was not for the fact that it compiles the programs, I can go into the folder where it compiles them to and run the programs manually and they work fine, it's just that the compiler can't run them automatically as it should when pressing "compile and run":(

    @DBZ: I am admin on my own comp, so that's not an issue:p

    Thanks for trying this far tho people:)
    Has anyone had a similiar occurance with other programs or something before?
     
  13. Weegee

    Weegee Go Weegee!

    Ratings:
    +101 / 0 / -0
    yep I have with Dev-c++. Sadly though I can only say that I was playing around with making code far back then. Thats why I gave my answer. Have you gone to the website and looked for like some forums for them to help you on this?
     
  14. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    I searched about two weeks ago when the problem first appeared. I have not tried doing this:

    1. Uninstall the program.
    2. Reboot comp.
    3. Install it again.

    I think that this can be a plausable solution, since there could be some temporary files hanging around somewhere from the prevsious installation that I have missed and perhaps a reboot will get rid of them aswell.
    I will try this and report check their forums again, and perhaps make another berserk-googling about it:p Then i will report back if I found a solution.

    This is by far the most annoying problem I have ever been up against:nuts:
     
  15. TriggerHappy

    TriggerHappy ...

    Ratings:
    +341 / 0 / -0
    So are you sure that it isn't running and closing instantly.

    Try opening your task manager and go to the processes tab, if you see your program popup and close instantly, then that is the problem.

    I'm sure you know the things that cause this, so if this is the problem you should know what to look for. :thup:
     
  16. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    This is one of the programs I have used to check it.

    If that closes immediately then I am the pope of everything:D

    It has also worked fine before, this program has been tested on several different comps, it is just my comp that is really F***ed up:nuts:

    I can use my programs by compiling them and going into the folder where dev outputs the executable file and start it "manually". It just won't run from dev:(

    There is nothing in any other forum about this, which means that it either is a really new problem or it is really easy to fix and I just miss something, or it is just me comp that is stupid:nuts:

    Code:
    #include <iostream.h>
    #include <string.h>
    #include <conio.h>
    #include <fstream.h>
    
    int a = 0, b = 0;
    std::string c = "a";
    
    void load()
    {
       ifstream myfile("test.txt");
       if (myfile.is_open())
         {
             while(! myfile.eof())
               {
                   myfile>>a;
                   myfile>>b;
                   myfile>>c;
               }
            myfile.close();
         }
         
    }
    
    void save()
    {
         ofstream myfile ("test.txt", ios::trunc);
         if (myfile.is_open())
           {
               myfile<<a<<"\n";
               myfile<<b<<"\n";
               myfile<<c<<"\n";
               myfile.close();               
           }
           else cout<<"Unable to open file!";    
    }
    
    int main()
    {
        
        int option;
        bool quit = false;
        
        
        while (quit == false)
        {
        
        cout<<"\nChange the value for A:      1\n";
        cout<<"Change the value for B:      2\n";
        cout<<"Change the value for C:      3\n";
        cout<<"Save the values:             4\n";
        cout<<"Load the old values:         5\n";
        cout<<"Show all values:             6\n";
        cout<<"If you want to quit:         7\n";
        cout<<"Enter an option:";
        cin>>option;
        
        if (option == 1)
          {
              cout<<"\nOld value for A is: "<<a;     
              cout<<"\nInput the new value for A(an integer)";
              cin>>a;        
          };
          
        if (option == 2)
          {
              cout<<"\nOld value for B is: "<<b;       
              cout<<"\nInput the new value for B(an integer)";
              cin>>b;        
          };
          
        if (option == 3)
          {
              cout<<"\nOld value for C is: "<<c;       
              cout<<"\nInput the new value for C(an string)";
              cin>>c;        
          }
          
        if (option == 4)
          {
              save();
          }  
        if (option == 5)
          {
              load();
          } 
          
        if (option == 6)
          {
              cout<<"The value of A is currently: "<<a;
              cout<<"\nThe value of B is currently: "<<b;
              cout<<"\nThe value of C is currently: "<<c;
          }
         
        if (option == 7)
          {
              quit=true;        
          }
    
        }
        
        return 0;         
    }
    
     
  17. LocalDude

    LocalDude New Member

    Ratings:
    +4 / 0 / -0
    Hi i tested the code and it worked fin no errors nothin except a black comandpromt with a few diferent choises:thup:.
     
    • Like Like x 1
  18. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    Thank you:thup:

    That proves it, there is nothing wrong with my code, it is my dev that has gone wacko:nuts:

    Edit: Anyone got any idea at all what could be causing this and/or how to fix it?
     
  19. Weegee

    Weegee Go Weegee!

    Ratings:
    +101 / 0 / -0
    maybe DL a different version of Dev? or has someone said that already?
     
  20. Samael88

    Samael88 Evil always finds a way

    Ratings:
    +181 / 0 / -0
    The thing is, that LocalDude is a friend of mine, and the dev he has installed is the same version as me. If I remember it correctly he even has installed it from the same file that I have, I think that I gave him that a while ago.

    I have tried two different versions of dev and I tried redownloading it, but with no different in the results.

    I have tried to turn of my firewalls and antivirus protections with the thought that they could be the ones causing it, but no changes to the result there aswell:(

    Could XP have a function or something that can cause this?
    Any other program that may cause this?
     

Share This Page