Home All Groups Group Topic Archive Search About
Author
3 Oct 2006 8:04 AM
HackaJAck
I have been working on a project for 5 months. When I tried to open the
project yesterday, it gave an error "PayMaster.vbp cannot be loaded". I
opened the VBP file with notepad, but it was empty. I also opened some of the
FRM files in notepad and some of those where empty too.

I tried to load a previous backup but some of the forms refuses to load.
Then I tried making a new project and adding the forms, but it creates and
error log saying "Line 91: Class MSAdodcLib.Adodc of control adoEN was not a
loaded control class."

Then I tried making a new project and first adding all the components and
references and then tried adding the forms but still 5 of my forms refuses to
load. Please help, I need to finish this project before Monday, and there is
no way I can re-create 5 months of work in less than one week.

I also run daily Virus updates and scans on my machine. I have Windows XP
SP2, and Visual Studio Enterprise Edition SP6. Automatic updates on my
operating system is ON.

Author
3 Oct 2006 1:37 PM
Steve Barnett
Do these "empty" files have a zero length? If not, try fining yourself a hex
editor and have a look in the files using that. Look for any strange
characters, possibly 00 bytes or 0C bytes at or near the start. If you find
any of these, change then to 20 and try again. Leave any 0A or 0D alone.

If they're 0 bytes, then they're almost certainly lost.

I would also take a look at the backups on a different PC, if you can, to
see whether they're really corrupt or whether it's something on your PC that
makes them look like they are.

Steve

Show quoteHide quote
"HackaJAck" <HackaJ***@discussions.microsoft.com> wrote in message
news:D633CA76-66E5-465E-B87C-5C595393B10B@microsoft.com...
>I have been working on a project for 5 months. When I tried to open the
> project yesterday, it gave an error "PayMaster.vbp cannot be loaded". I
> opened the VBP file with notepad, but it was empty. I also opened some of
> the
> FRM files in notepad and some of those where empty too.
>
> I tried to load a previous backup but some of the forms refuses to load.
> Then I tried making a new project and adding the forms, but it creates and
> error log saying "Line 91: Class MSAdodcLib.Adodc of control adoEN was not
> a
> loaded control class."
>
> Then I tried making a new project and first adding all the components and
> references and then tried adding the forms but still 5 of my forms refuses
> to
> load. Please help, I need to finish this project before Monday, and there
> is
> no way I can re-create 5 months of work in less than one week.
>
> I also run daily Virus updates and scans on my machine. I have Windows XP
> SP2, and Visual Studio Enterprise Edition SP6. Automatic updates on my
> operating system is ON.
Author
3 Oct 2006 1:52 PM
HackaJAck
I have looked at these files with a Hex Viewer. The Hex code is present. I'm
currently searching the net for a Hex editor, but Im not quite sure how to
edit Hex code and what exactly to edit.
Author
3 Oct 2006 2:49 PM
expvb
"HackaJAck" <HackaJ***@discussions.microsoft.com> wrote in message
news:7A676785-CA8F-4330-89A7-8A946D3A6051@microsoft.com...
>I have looked at these files with a Hex Viewer. The Hex code is present.
>I'm
> currently searching the net for a Hex editor, but Im not quite sure how to
> edit Hex code and what exactly to edit.

Use this one, it's a good one and free:

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

Also, you may find this ASCII table useful:

http://www.lookuptables.com

Hopefully you find away to fix it...
Author
3 Oct 2006 4:28 PM
Steve Barnett
Nice hex editor - something strange going on though - WinZip won't open the
archive but Windows Explorer will explore it! Still, amazingly easy to use.

Steve


Show quoteHide quote
"expvb" <nob***@cox.net> wrote in message
news:O3BXRsv5GHA.4644@TK2MSFTNGP04.phx.gbl...
> "HackaJAck" <HackaJ***@discussions.microsoft.com> wrote in message
> news:7A676785-CA8F-4330-89A7-8A946D3A6051@microsoft.com...
>>I have looked at these files with a Hex Viewer. The Hex code is present.
>>I'm
>> currently searching the net for a Hex editor, but Im not quite sure how
>> to
>> edit Hex code and what exactly to edit.
>
> Use this one, it's a good one and free:
>
> http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
>
> Also, you may find this ASCII table useful:
>
> http://www.lookuptables.com
>
> Hopefully you find away to fix it...
>
>
>
>
>
Author
3 Oct 2006 4:15 PM
Steve Barnett
"HackaJAck" <HackaJ***@discussions.microsoft.com> wrote in message
news:7A676785-CA8F-4330-89A7-8A946D3A6051@microsoft.com...
>I have looked at these files with a Hex Viewer. The Hex code is present.
>I'm
> currently searching the net for a Hex editor, but Im not quite sure how to
> edit Hex code and what exactly to edit.

Hopefully, there won't be much to change. My guess would be that the 0C is
in the first position of the file. In a form, this is the letter "V" (as in
"VERSION 5.00"), so you should change the 0C to a "V". Most hex editors I've
seen allow you to change either the hex value or the character
interpretation. Uppercase V is hex 56.

Steve
Author
4 Oct 2006 6:04 AM
HackaJAck
I have opened the file with the hex editor but its all just zeros. When I
open it with a disk investigator that is basically used to retreive deleted
files, then there is some hex code, but I cannot retreive it.
Author
4 Oct 2006 8:50 AM
Steve Barnett
If it's all zeros, then it's lost, sorry.

Steve


Show quoteHide quote
"HackaJAck" <HackaJ***@discussions.microsoft.com> wrote in message
news:FCBEB179-BB99-435B-B5A0-FC9EA08B2B60@microsoft.com...
>
> I have opened the file with the hex editor but its all just zeros. When I
> open it with a disk investigator that is basically used to retreive
> deleted
> files, then there is some hex code, but I cannot retreive it.
Author
5 Oct 2006 2:44 PM
Victory
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)...