CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2002
    Posts
    138

    Problems with created exe

    Hello. I am having problems with the exe created by my vb app...

    I am getting the following error message:

    The C:\blah\blah\blah.exe file appears to be corrupt. Reinstall the file, and then try again.

    And another error message in a seperate box that says:

    Windows cannot run this program because it is in an invalid format

    The app is pretty large and it contains a large resource file as well.... any suggestions???

    It compiles fine and creates the exe and runs fine in design mode.

  2. #2
    Join Date
    Apr 2001
    Location
    Mississauga, CANADA
    Posts
    199
    You did not indicate whether the program runs on a client PC or the development PC. This can help in determining the problem.
    Please let us know.
    Paul
    Paul

  3. #3
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    A bit more info would be handy - such as, What platform was it compiled on, what platform is the target machine (the one that is causing the problems) etc etc
    Be nice to Harley riders...

  4. #4
    Join Date
    Mar 2002
    Posts
    138
    I am using a windows 98 machine(deveolpment PC). The program is written in VB6. It runs fine in design mode, and fully compiles. The executable file gets created in native code, but then when I click on the exe to run my program I get the errors.

  5. #5
    Join Date
    May 2002
    Location
    Montreal
    Posts
    450
    Is your project compiled as a standard EXE or an ActiveX EXE?
    Cheers,
    Laurent

    For an aviator, the three best things in life are a good landing, a good orgasm, and a good sh*t. A night carrier landing is one of the few opportunities to experience all three at the same time.

  6. #6
    Join Date
    Mar 2002
    Posts
    138
    standard exe

  7. #7
    Join Date
    Feb 2003
    Location
    Greece
    Posts
    533

    compile outside ide

    Just a thought, compile your projects outside the ide, using VB.EXE's switches (type VB /? for more help). Maybe this will help.
    - Better live in the digital world -

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

Featured