|
-
May 2nd, 2000, 11:47 PM
#1
Thread Starter
Addicted Member
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]
-
May 2nd, 2000, 11:56 PM
#2
Fanatic Member
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!
-
May 3rd, 2000, 12:39 AM
#3
Thread Starter
Addicted Member
Yes This Error Occurs For Every Project That I tried to compile
Yes This Error Occurs For Every Project That I tried to compile.
-
May 3rd, 2000, 12:46 AM
#4
Lively Member
you still need to answer as to whether or not c2.exe exisits on your system.
-
May 3rd, 2000, 12:51 AM
#5
PowerPoster
When I had the VB5.0 Enterprise Beta this error happened to me too, sometimes. However, after restarting VB it worked...
-
May 3rd, 2000, 12:52 AM
#6
Thread Starter
Addicted Member
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?
-
May 3rd, 2000, 01:49 AM
#7
Lively Member
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.
-
May 3rd, 2000, 02:31 AM
#8
Thread Starter
Addicted Member
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
-
May 3rd, 2000, 06:58 AM
#9
Try finding the file on your disk and double clicking it.
Does it work? or is there an error?
-
May 3rd, 2000, 08:18 AM
#10
Thread Starter
Addicted Member
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
-
May 3rd, 2000, 12:43 PM
#11
Lively Member
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??
-
May 3rd, 2000, 07:58 PM
#12
Frenzied Member
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."
-
May 3rd, 2000, 08:50 PM
#13
Thread Starter
Addicted Member
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
-
May 3rd, 2000, 09:47 PM
#14
Lively Member
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..
-
May 3rd, 2000, 09:53 PM
#15
Thread Starter
Addicted Member
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.
-
May 4th, 2000, 02:13 AM
#16
Thread Starter
Addicted Member
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]
-
May 4th, 2000, 02:47 AM
#17
Lively Member
did you check your path statement??
-
May 4th, 2000, 03:46 AM
#18
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.
-
May 4th, 2000, 05:43 AM
#19
Lively Member
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.
-
May 4th, 2000, 07:11 AM
#20
Member
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
-
May 4th, 2000, 08:14 AM
#21
Thread Starter
Addicted Member
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?
-
Dec 19th, 2013, 02:33 PM
#22
Member
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 .
-
Dec 19th, 2013, 03:33 PM
#23
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|