Results 1 to 8 of 8

Thread: problems making an EXE!!! C2.EXE! Help me please!

  1. #1
    j146
    Guest

    Angry problems making an EXE!!! C2.EXE! Help me please!

    When I try to make an exe there is the following error:

    File not found: C2.EXE

    I don't find this file on my system! Could you send me it!
    Where do I copy it to ?

    Thank for your help,
    Jeremy

  2. #2
    DerFarm
    Guest
    Never heard of it.

    I assume that you are using the builtin deployement wizard,
    PDCMDLN.EXE

    It sounds to me like you have included in the deployment script a
    file named C2.exe. As you walk thru the wizard check watch for
    part about included files. If this file is there, you can probably
    uncheck it.

    Is your project C2 by Any chance? If so, you have go under File->
    create exe when you are in VB and create the executable.

    Of course, it could be something truly funky. If this is the case, I
    would suggest that you uninstall and re-install.

    HTH

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    well if it was your application exe.. the PDW would ask you if you wanted it to compile it if it didn't exist or was out of date... so chances are c2.exe is somthing that is needed by a component you added.. or you added this file by mistake....

    where in the PDW are you getting the error?

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    there is actually a file c2.exe that comes with Visual Studio in the vb directory..have no clue what it does..but you should re-install your VB...
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    DerFarm
    Guest
    Well, I'll be dippt in ****.

    Of course it's not really Visual Basic that does the optimization.
    It's C2.EXE, the second pass of the C++ compiler. VB invokes this
    program with different options to produce different optimizations.
    You can see exactly how this process works and even change it
    using a technique I first saw described in Advanced Visual Basic
    5, the Mandelbrot Set, 1997. The author, Peter Morris, renames
    the real C2.EXE to a different name and replaces it with his own
    C2.EXE, which writes all the command lines it gets from VB to a
    log file and then passes the same command line on to the real
    renamed C2.EXE. By studying the log file, you can see exactly
    what VB is doing when you set different optimizations. It turns
    out that VB generates a temporary intermediate file (probably the
    same kind generated by the first pass C1.EXE of the C++
    compiler) and passes the name of that file to C2 for compilation.
    I guess it was something truly funky. Sorry.

  6. #6
    j146
    Guest
    There is nothing to do!!! VB doesn't work! It's impossible to compile my project! Always this error : "File no found : C2.EXE"!
    I'm going to re-install VB on my computer.

    Thank for all!

    PS : I'll submit a post in this topic to say if it's work.

  7. #7
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    Just found this:
    You should now start to see why this process might be slower than selecting p-code generation (which is an internal process and doesn’t use C2).
    Soooo,
    Under Project Properties, under the Compile Tab, select "Compile to P Code".
    Then, go ahead and Compile. It would seem to work, since it doesn't use the C2.exe

    -lou

  8. #8
    j146
    Guest
    There is no problems now! I've just re-install VB6.
    Thnx everybody!

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