Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error - File Format No Longer Supported

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
I am loading someone else's project code and I get a message saying File Format No Longer Supported. I continue to load the project and it stated that there have been errors in loading a certain form. The error log for the form in question states the following:

Line 17: Class GHMessageTrap.MSGTRAP of control MSGTRAP1 was not a loaded control class.
Line 35: Class ComctlLib.StatusBar of control status was not a loaded control class.

I have tried deleting the control, adding a reference to Microsoft Windows Common Controls 6.0 and re-adding a status bar of the name given in the project (it changes it to a picture box in the load with errors) but I now seem to be losing much of my functionality.

What can I do to overcome this??

PS: I have already posted this under VB Win32API in case anyone has seen it already...

I think the project may have been developed under VB 5...
 
Craftor,
I get this same problem when creating a new project (and also when opening old projects--but clearly this does not have to do with the vb project file being old), whenever I try to add comctl32.ocx to my components.
in addition, comct332.ocx and comct232.ocx work, but mscomct2.ocx and mscomctl.ocx will not.
The "file format no longer supported" error pops up right after clicking O.K. on the Components window after having selected the above ocxs (Under Microsoft Windows Common Controls). I tried this with a standard exe project and an activex exe project.

MSDN has some information that error message, but not for our situation in particular. One that seemed promising is that we've got the wrong version of stdole.tlb

or maybe it has to do with differing dependencies?

Did you make any progress in this in the last two months?

thanks,
Colin
 
hello

I have now the same problem and I was wondering if you have found a solution to it...

I got the error after installing crystal reports rdc. Everytime I try to add "Microsoft common controls 6.0" it gives me the error "File format no longer supported". It is very frustrating...

greetz

Mim
 
hello again...

I have solved my problem already.

First I installed visual basic service pack 5 again, but that didn't do anything, then I just reinstalled visual basic itself and everything was allright...

greetz

Mim
 
The problem accoured because the files doesnt excist or VB just can find them. To solve it you can reinstall vb (or servicepacks) or choose browse (@ the components page to the right there is a button called browse). then find the file. (the components from windows and vb is in c:\windows\system32 by default)

ken Christensen
Ken@Christensen.dk
Ken Christensen Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top