Results 1 to 23 of 23

Thread: PROBLEM COMPILING : "COULD NOT EXECUTE 'C2.EXE'"

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy

    Hi,
    I'm using VB6 Enterprise Edition. Today when I tried to compile my program to EXE files I got this error message "COULD NOT EXECUTE 'C2.EXE'." Even after I reinstall VB I STILL GOT THE ERROR. What should I do ?

    [Edited by omarswan on 05-03-2000 at 12:48 PM]
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Again

    Again i ask, cos your post seemed to do a disappearing act last time.

    Is c2.exe on your system, and when exactly did the error occur?

    Does the error occur for every project or just one inparticular project?
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy Yes This Error Occurs For Every Project That I tried to compile

    Yes This Error Occurs For Every Project That I tried to compile.
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Location
    Rochester NY, USA
    Posts
    93
    you still need to answer as to whether or not c2.exe exisits on your system.

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    When I had the VB5.0 Enterprise Beta this error happened to me too, sometimes. However, after restarting VB it worked...

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy Yes, C2.EXE is on My System.

    Yes, C2.EXE is on My System. I have reinstalled Vb about 4 times now and it still does not work. Could it be a virus on my system?
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  7. #7
    Lively Member
    Join Date
    Jan 1999
    Location
    Rochester NY, USA
    Posts
    93
    Did you just reinstall over the top or did you completely uninstall.. reboot.. then reinstall.. and reboot? I'd try to do that if you haven't.

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240
    Originally posted by rchiav
    Did you just reinstall over the top or did you completely uninstall.. reboot.. then reinstall.. and reboot? I'd try to do that if you haven't.

    Yes I did all of That, And It Still Doesn't Work
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  9. #9
    Guest
    Try finding the file on your disk and double clicking it.
    Does it work? or is there an error?

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy I Tried That Already But The File Doesn't Respond

    Originally posted by Megatron
    Try finding the file on your disk and double clicking it.
    Does it work? or is there an error?

    I Tried That Already But The File Doesn't Seem To Be Responding
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  11. #11
    Lively Member
    Join Date
    Aug 1999
    Posts
    89
    C2.exe is actually a compiler and it expect certain parameters. Double click on it in windows will not run it. This file comes together with VB and it's needed to compiler program.

    My guess is the compiler crash with some other application. Do you have any other compiler installed??

  12. #12
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    I noticed this a while back - it still happens a few times to me - however, I have noticed (strangely enough) that if you close all the open windows of the project before compiling it seems to be ok. Also, doing a "Run with full Compile" first also helps as this weedles out any errors that may be causing the compiler to fail.

    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy I Think There Is something Wrong On My System

    It's not the first time this has happened to me. But It always worked when i tried again, but now for some strange reason it does not work.

    I Think There Is something Wrong On My System (WIN 98). I just used the Windows Run Command -> I typed in "command.com" so that I could go to the MS-DOS prompt and it didn't work. I got this message

    "Windows Cannot Find command.pif"

    It's the same kind of error message thjat comes up when the file assosiated with a file cannot be found.


    Ay Suggestions , other than re installing WIN98
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  14. #14
    Lively Member
    Join Date
    Jan 1999
    Location
    Rochester NY, USA
    Posts
    93
    just a wild shot in the dark here.. but how long is your path statement? Take a look at what's being appended to your path... I think that win98 still has a limit of 128 chars but I could be wrong.. there could also be something thats.. mal-formatted in the string..

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Unhappy I Know That Something is Definately Wrong

    I Know That Something is Definately Wrong. I can't run any MS-DOS based program, I can't even go to the MS-DOS Prompt from inside of windows, not even ftp.exe works.
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Angry I Think That I Will Have The Re Install WIN98 "Again"

    I Think That I Will Have The Re Install WIN98 AGAIN.

    It's very strange how I clicked on command.com and I got this message
    [b]
    Cannot Find the file 'C:\COMMAND.COM'(or one of it's components). Make sure the path and filename are correct and that all required libraries exist

    Just Great

    [b]

    [Edited by omarswan on 05-04-2000 at 03:15 PM]
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  17. #17
    Lively Member
    Join Date
    Jan 1999
    Location
    Rochester NY, USA
    Posts
    93
    did you check your path statement??

  18. #18
    Guest
    I had something like this happen to me beofre too. Yes, I
    do suggst that you reinstall Win98 because that's how i got rid of it.

  19. #19
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73

    Exclamation

    Hello,
    I too have this problem sometimes alough my version is only VB5 Pro, I put it down to not having enough RAM free especially if my program uses a lot of forms, mods etc.. and if it crashes resulting in Ctrl-Break needing to be pressed.

    I found that reseting my computer then closing all running programs, including anything in the system tray, and then just compling the project without testing if first done the trick.

    Hope that made sense and helped,
    Desire.

  20. #20
    Member
    Join Date
    Feb 2000
    Location
    Coff Harbour
    Posts
    32
    this just happened to a friend, so he copied my c2.exe over his and it worked Ok. He said it would work on a re-install if you deleted the file before re-installing

  21. #21

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Angry

    I Thank you all for you response. But I have tried almost everything possible. I re installed VB about 4 times and it still didn't work. There is only one thing left. VB still runs and compiles but its just doesn't work when I tried to create an executable file. I realised that once I'm in windows I can't run any MS-DOS programs, I can't even go to the MS-DOS prompt. I think that my registry got messed up
    Again . Things such as ftp.exe, command.com doesn't work when you clik on them from WIN Explorer.

    The only thing left now is :

    FORMAT C:\U\S


    I think that will help?

    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  22. #22
    Member
    Join Date
    Dec 2013
    Posts
    48

    Re: PROBLEM COMPILING : "COULD NOT EXECUTE 'C2.EXE'"

    Well , i just had a few moments that error too in my VB6 .
    i searched all over the net on topics about this issue and it seems that no one really know why that happens .
    I solved my "could not execute c2.exe" this way :
    -Uninstall vb6
    -delete main folder : Microsoft visual studio in "c:\program files\Microsoft visual studio (it is where vb6 is installed)
    -get ccleaner program from : https://www.piriform.com/ccleaner
    -install ccleaner and run it
    -clear all temporary files and fix registry issues with ccleaner
    -Install again vb6 (typical installation)

    Done

    my guess for this issue is that may be some file problems in VB98 folder , doing all those steps it worked for me .

  23. #23
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: PROBLEM COMPILING : "COULD NOT EXECUTE 'C2.EXE'"

    @pedropt: You do realise that this is an almost 14 year old thread, don't you? Please don't go grave digging in the future and bring such old threads back to life. Thread closed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width