From: Steve Barnett on
At least you appear to have a project file - that's a start.

If I were attacking this, I'd go at it as follows.

a) I'm assuming that it's word wrap in the news group that affects the
Reference and Object statements - these must appear on one line.
b) Remove the "1" at the bottom of the file and try again. Last statement
should be AutoRefresh=1 and then there should be nothing else.
c) Change that rather strange looking "Path32" statement.
d) Remove (temporarily) half of the Reference and Object statements to see
whether it still objects to the VBP file. If it does, remove some more. If
not, add a few back in until you get the error. By a process of elimination,
find out which statement is causing you grief.

No guarantee it'll fix the problem, but that's where I would start.

Steve




<irfanch1(a)hotmail.com> wrote in message
news:1159956123.879940.163590(a)m7g2000cwm.googlegroups.com...
>I seems to be having the same problem, We have been using a package
> called as "Graphics Server" and now have updated to it's newer version
> it worked fine with changes in the reference and in code, but while
> running with "Start With Full Compile"option it moarned about few
> constants which were still refering to the old library after updating
> them to new version when I compiled my program following error appeared
> and highlited few lines in the code
> "2147418113(8000ffff)
> Automation Error
> Castastrophic Failure"
> I tried few things and now this error is coming "Project File thing.VBP
> is corrupt, and can't be loaded"
> Your earliest reply is urgenly awaited... you can aslo email me on
> irfanch1(a)hotmail.com
>
> Cheers!
>
> I'm coping my .VBP file as an additional source of information
>
>
> Type=Exe
> Reference=*\G{0E3B7611-7892-11D2-84D9-0040C71340BC}#7.a#0#..\..\..\..\..\WINDOWS\system32\Trax.dll#
> Object={A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#3.0#0; Resize32.ocx
> Reference=*\G{00025E01-0000-0000-C000-000000000046}#4.0#0#..\..\..\..\..\Program
> Files\Common Files\Microsoft Shared\DAO\DAO350.DLL#Microsoft DAO 3.5
> Object Library
> Reference=*\G{1C82EAD8-508E-11D1-8DCF-00C04FB951F9}#1.0#0#..\..\..\..\..\WINDOWS\System32\inetcomm.dll#Microsoft
> MIMEEDIT Type Library 1.0
> Object={09467F50-BBA5-11D4-B8F6-080030001D26}#5.0#0; polarzip.ocx
> Reference=*\G{3FA7DEA7-6438-101B-ACC1-00AA00423326}#1.15#0#..\..\..\..\..\PROGRA~1\COMMON~1\SYSTEM\MSMAPI\1033\CDO.DLL#Microsoft
> CDO 1.21 Library
> Object={7821D3E7-21C7-48B0-9938-31AD0AF082AF}#1.0#0; IMACTX80.ocx
> Object={1D439C92-B20B-47F5-BEA3-E080E481B2C3}#1.0#0; ImTwain8.ocx
> Reference=*\G{19CD2397-D366-425F-AE02-07CFF09AA02D}#2.5#0#..\..\..\..\..\WINDOWS\system32\polarcrypto.dll#Polar
> Crypto 2.5 ActiveX control
> Reference=*\G{420B2830-E718-11CF-893D-00A0C9054228}#1.0#0#..\..\..\..\..\WINDOWS\system32\scrrun.dll#Microsoft
> Scripting Runtime
> Object={A8B3B723-0B5A-101B-B22E-00AA0037B2FC}#1.0#0; grid32.ocx
> Object={648A5603-2C6E-101B-82B6-000000000014}#1.1#0; MSCOMM32.OCX
> Object={B16553C3-06DB-101B-85B2-0000C009BE81}#1.0#0; spin32.ocx
> Object={BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0; tabctl32.ocx
> Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; comctl32.ocx
> Object={8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0; MSCAL.OCX
> Object={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0; threed32.ocx
> Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; comdlg32.ocx
> Object={8AE029D0-08E3-11D1-BAA2-444553540000}#3.0#0; VSFLEX3.OCX
> Object={654D070F-528D-11D4-B401-0040C71340BC}#8.1#0; PrintForm.ocx
> Object={008BBE7B-C096-11D0-B4E3-00A0C901D681}#1.0#0; teechart.ocx
> Object={3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0; RICHTX32.OCX
> Object={20C62CAE-15DA-101B-B9A8-444553540000}#1.1#0; MSMAPI32.OCX
> Object={248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0; MSWINSCK.OCX
> Object={0EABA3C3-D884-101B-8CAE-00006E44AAB2}#1.0#0; imocx32.ocx
> Module=Forms; Modules\forms.bas
> Module=Databases; Modules\database.bas
> Form=Forms\Database\NETWEBAdminLogin.frm
> Form=Forms\Networks\NETAdminSetup2.frm
> Form=Forms\Database\StarImpEnh.frm
> Form=Forms\FormDesign\Rectangle.frm
> Form=Forms\licsetup.frm
> Form=Forms\Database\GraphDetails.frm
> Form=Forms\FormDesign\Offset.frm
> Form=Forms\Database\FormLayout.frm
> Form=Forms\Database\SetupFieldsNew.frm
> Form=Forms\Database\SetupComm.frm
> Form=Forms\Database\TabOrder.frm
> Form=Forms\Database\RecordEdit.frm
> Form=Forms\Database\RecordListSetup.frm
> Form=Forms\Database\ResultsPrint.frm
> Form=Forms\Database\ResultsExport.frm
> Form=Forms\FormDesign\AnswerBoxes.frm
> Form=Forms\FormDesign\Statistics.frm
> Form=Forms\FormDesign\AutoSave.frm
> Form=Forms\FormDesign\Images.frm
> Form=Forms\FormDesign\Barcodes.frm
> Form=Forms\Database\NewRecordImport.frm
> Form=Forms\FormDesign\Text.frm
> Form=Forms\Database\ReportDesign.frm
> Form=Forms\Database\ReportHeader.frm
> Form=Forms\Database\ReportLabels.frm
> Form=Forms\Database\ReportComments.frm
> Form=Forms\Database\RecordImportEnh.frm
> Form=Forms\FormDesign\AnswerBoxesSSS.frm
> Form=Forms\FormDesign\PaperSize.frm
> Form=Forms\Database\grpsetup.frm
> Form=Forms\Database\RecordGlobal.frm
> Form=Forms\FormDesign\HandWriten.frm
> Form=Forms\FormDesign\Colour.frm
> Form=Forms\Database\frmimere.frm
> Form=Forms\Database\ReportAnswers.frm
> Form=Forms\Database\maketiff.frm
> Form=Forms\Networks\srvrlist.frm
> Form=Forms\FormDesign\List.frm
> Form=Forms\Database\CreateNew.frm
> Form=Forms\Networks\nsfread.frm
> Form=Forms\Networks\srvrproj.frm
> Form=Forms\Database\password.frm
> Form=Forms\Backdrop.frm
> Form=Forms\Networks\frmWEBCr.frm
> Form=Forms\Networks\frmWEBDelete.frm
> Form=Forms\Database\GropScan.frm
> Form=Forms\Database\StarImp.frm
> Form=Forms\Database\DBSBatchDat.frm
> Form=Forms\FormDesign\FMDOpenNew1.frm
> Form=Forms\Database\ResultsPrintR.frm
> Form=Forms\MMIniSetup.frm
> Form=Forms\Database\DBSPreferences.frm
> Form=Forms\Database\ScanAll.frm
> Form=Forms\Database\DBSFormProp.frm
> Form=Forms\Database\DBSLew.frm
> Form=Forms\Database\RecordImport.frm
> Form=Forms\FormDesign\FMDRefGridProperties.frm
> Form=Forms\Database\newpreview.frm
> Form=Forms\FormDesign\FMDPrint.frm
> Form=Forms\Database\frmTeleScan.frm
> Form=Forms\FormDesign\FMDPropertyHandEntryBox.frm
> Form=Forms\FormDesign\FMDInsertSpace.frm
> Form=Forms\Networks\NetEMailAddress.frm
> Form=Forms\Database\RecordList.frm
> Form=Forms
From: Victory on
Below is a possible fix from another forum:
http://experts.about.com/q/Visual-Basic-1048/error-loading-form-bad.htm

Here is a Possible Fix.
1. BACKUP the Original Source code!!!!!

2. Load the Application Acknowledge the Error when loading...


3. Open the Form(s) with the Calandar Control(s) on them

Note that they have been turned into pictureboxes...


4. Load the Calendar Control into the Toolbox.

5. Add The Calendar Control (keep default name for now..)

6. Note the name of the picturebox that replaced the original calendar
control.

7. Delete the Picturebox in step 6

8. Rename the NEW calendar control to the name in step 6.

Repeat for ALL Calendar Controls...


Save the App, Test and then recompile...


Then Redistribute with PDW (Package & Deployment Wizard)...


From: Mascott13 on


"Steve Barnett" wrote:

> At least you appear to have a project file - that's a start.
>
> If I were attacking this, I'd go at it as follows.
>
> a) I'm assuming that it's word wrap in the news group that affects the
> Reference and Object statements - these must appear on one line.
> b) Remove the "1" at the bottom of the file and try again. Last statement
> should be AutoRefresh=1 and then there should be nothing else.
> c) Change that rather strange looking "Path32" statement.
> d) Remove (temporarily) half of the Reference and Object statements to see
> whether it still objects to the VBP file. If it does, remove some more. If
> not, add a few back in until you get the error. By a process of elimination,
> find out which statement is causing you grief.
>
> No guarantee it'll fix the problem, but that's where I would start.
>
> Steve
>
>
>
>
> <irfanch1(a)hotmail.com> wrote in message
> news:1159956123.879940.163590(a)m7g2000cwm.googlegroups.com...
> >I seems to be having the same problem, We have been using a package
> > called as "Graphics Server" and now have updated to it's newer version
> > it worked fine with changes in the reference and in code, but while
> > running with "Start With Full Compile"option it moarned about few
> > constants which were still refering to the old library after updating
> > them to new version when I compiled my program following error appeared
> > and highlited few lines in the code
> > "2147418113(8000ffff)
> > Automation Error
> > Castastrophic Failure"
> > I tried few things and now this error is coming "Project File thing.VBP
> > is corrupt, and can't be loaded"
> > Your earliest reply is urgenly awaited... you can aslo email me on
> > irfanch1(a)hotmail.com
> >
> > Cheers!
> >
> > I'm coping my .VBP file as an additional source of information
> >
> >
> > Type=Exe
> > Reference=*\G{0E3B7611-7892-11D2-84D9-0040C71340BC}#7.a#0#..\..\..\..\..\WINDOWS\system32\Trax.dll#
> > Object={A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#3.0#0; Resize32.ocx
> > Reference=*\G{00025E01-0000-0000-C000-000000000046}#4.0#0#..\..\..\..\..\Program
> > Files\Common Files\Microsoft Shared\DAO\DAO350.DLL#Microsoft DAO 3.5
> > Object Library
> > Reference=*\G{1C82EAD8-508E-11D1-8DCF-00C04FB951F9}#1.0#0#..\..\..\..\..\WINDOWS\System32\inetcomm.dll#Microsoft
> > MIMEEDIT Type Library 1.0
> > Object={09467F50-BBA5-11D4-B8F6-080030001D26}#5.0#0; polarzip.ocx
> > Reference=*\G{3FA7DEA7-6438-101B-ACC1-00AA00423326}#1.15#0#..\..\..\..\..\PROGRA~1\COMMON~1\SYSTEM\MSMAPI\1033\CDO.DLL#Microsoft
> > CDO 1.21 Library
> > Object={7821D3E7-21C7-48B0-9938-31AD0AF082AF}#1.0#0; IMACTX80.ocx
> > Object={1D439C92-B20B-47F5-BEA3-E080E481B2C3}#1.0#0; ImTwain8.ocx
> > Reference=*\G{19CD2397-D366-425F-AE02-07CFF09AA02D}#2.5#0#..\..\..\..\..\WINDOWS\system32\polarcrypto.dll#Polar
> > Crypto 2.5 ActiveX control
> > Reference=*\G{420B2830-E718-11CF-893D-00A0C9054228}#1.0#0#..\..\..\..\..\WINDOWS\system32\scrrun.dll#Microsoft
> > Scripting Runtime
> > Object={A8B3B723-0B5A-101B-B22E-00AA0037B2FC}#1.0#0; grid32.ocx
> > Object={648A5603-2C6E-101B-82B6-000000000014}#1.1#0; MSCOMM32.OCX
> > Object={B16553C3-06DB-101B-85B2-0000C009BE81}#1.0#0; spin32.ocx
> > Object={BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0; tabctl32.ocx
> > Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; comctl32.ocx
> > Object={8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0; MSCAL.OCX
> > Object={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0; threed32.ocx
> > Object={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0; comdlg32.ocx
> > Object={8AE029D0-08E3-11D1-BAA2-444553540000}#3.0#0; VSFLEX3.OCX
> > Object={654D070F-528D-11D4-B401-0040C71340BC}#8.1#0; PrintForm.ocx
> > Object={008BBE7B-C096-11D0-B4E3-00A0C901D681}#1.0#0; teechart.ocx
> > Object={3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0; RICHTX32.OCX
> > Object={20C62CAE-15DA-101B-B9A8-444553540000}#1.1#0; MSMAPI32.OCX
> > Object={248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0; MSWINSCK.OCX
> > Object={0EABA3C3-D884-101B-8CAE-00006E44AAB2}#1.0#0; imocx32.ocx
> > Module=Forms; Modules\forms.bas
> > Module=Databases; Modules\database.bas
> > Form=Forms\Database\NETWEBAdminLogin.frm
> > Form=Forms\Networks\NETAdminSetup2.frm
> > Form=Forms\Database\StarImpEnh.frm
> > Form=Forms\FormDesign\Rectangle.frm
> > Form=Forms\licsetup.frm
> > Form=Forms\Database\GraphDetails.frm
> > Form=Forms\FormDesign\Offset.frm
> > Form=Forms\Database\FormLayout.frm
> > Form=Forms\Database\SetupFieldsNew.frm
> > Form=Forms\Database\SetupComm.frm
> > Form=Forms\Database\TabOrder.frm
> > Form=Forms\Database\RecordEdit.frm
> > Form=Forms\Database\RecordListSetup.frm
> > Form=Forms\Database\ResultsPrint.frm
> > Form=Forms\Database\ResultsExport.frm
> > Form=Forms\FormDesign\AnswerBoxes.frm
> > Form=Forms\FormDesign\Statistics.frm
> > Form=Forms\FormDesign\AutoSave.frm
> > Form=Forms\FormDesign\Images.frm
> > Form=Forms\FormDesign\Barcodes.frm
> > Form=Forms\Database\NewRecordImport.frm
> > Form=Forms\FormDesign\Text.frm
> > Form=Forms\Database\ReportDesign.frm
> > Form=Forms\Database\ReportHeader.frm
> > Form=Forms\Database\ReportLabels.frm
> > Form=Forms\Database\ReportComments.frm
> > Form=Forms\Database\RecordImportEnh.frm
> > Form=Forms\FormDesign\AnswerBoxesSSS.frm
> > Form=Forms\FormDesign\PaperSize.frm
> > Form=Forms\Database\grpsetup.frm
> > Form=Forms\Database\RecordGlobal.frm
> > Form=Forms\FormDesign\HandWriten.frm
> > Form=Forms\FormDesign\Colour.frm
> > Form=Forms\Database\frmimere.frm
> > Form=Forms\Database\ReportAnswers.frm
> > Form=Forms\Database\maketiff.frm
> > Form=Forms\Networks\srvrlist.frm
> > Form=Forms\FormDesign\List.frm
> > Form=Forms\Database\CreateNew.frm
> > Form=Forms\Networks\nsfread.frm
> > Form=Forms\Networks\srvrproj.frm
> > Form=Forms\Database\password.frm
> > Form=Forms\Backdrop.frm
> > Form=Forms\Networks\frmWEBCr.frm
> > Form=Forms\Networks\frmWEBDelete.frm
> > Form=Forms\Database\GropScan.frm
> > Form=Forms\Database\StarImp.frm
> > Form=Forms\Database\DBSBatchDat.frm
> > Form=Forms\FormDesign\FMDOpenNew1.frm
> > Form=Forms\Database\ResultsPrintR.frm
> > Form=Forms\MMIniSetup.frm
> > Form=Forms\Database\DBSPreferences.frm
> > Form=Forms\Database\ScanAll.frm
> > Form=Forms\Database\DBSFormProp.frm
> > Form=Forms\Database\DBSLew.frm
> > Form=Forms\Database\RecordImport.frm
> > Form=Forms\FormDesign\FMDRefGridProperties.frm
> > For