Results 1 to 10 of 10

Thread: Invalid File Format Error When Creating EXE

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    I am using two active X controls, CommonDialog 6 and MS FlexGrid. The program complies, but will not produce an exe. When it goes to make the exe, an error occurs...."Invalid File Format".

    Any Suggestions...

    This is using VB 6.0.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    Top....

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    Anyone ever gotten this error??

  4. #4
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Nope . Never seen or heard it before . I don't think anyone else has either . Search the MSDN or http://www.microsoft.com
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    This is the EXACT error I am recieving...

    I do not know how to fix it though...

    http://msdn.microsoft.com/library/de...ilecorrupt.htm

  6. #6
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    Search the Microsoft support KB. I saw one article that said something about a bad
    resource file and another one said an .OCX may not be registered.

    [Edited by dsy5 on 10-15-2000 at 07:53 PM]
    Donald Sy - VB (ab)user

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    I have not registered any OCX's, what is that and how do I register them? I am using the flexgrid control and common dialog, and common controls...

  8. #8
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    Well an .OCX is an ActiveX control. Since you are using the standard controls supplied with VB,
    this is probably not the problem. Please look at the link to Microsoft, I have found a lot of
    answers there and I'm sure you'll find it.
    Donald Sy - VB (ab)user

  9. #9
    Lively Member dlm's Avatar
    Join Date
    Oct 2000
    Location
    Geraardsbergen(Belgium)
    Posts
    91

    I've got the same problem...

    Hi,

    I've got a simular problem...
    Please send me your solution...

    Thanks...
    DLM

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Apr 2000
    Posts
    64
    I actually found that i just removed the OCX from my application, and used a newer version...

    eg:

    Went from Common Controls 5.0 to 6.0 and that fixed the problem.


    Hope this helps,

    Shawn,
    Wrestlecar.com

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