|
-
Jan 24th, 2006, 05:01 AM
#1
Thread Starter
Junior Member
General VB loading
Hi Guys,
Don't know if you can help but I have a strange problem with my VB6 (Enterprise) installation.
For some unknown reason, whenever I load a project that I have done on another PC (saved to a floppy disc or USB memory stick) the code displays fine and the program runs perfectly... But the form doesn't come up! When I try to open it, VB crashes...
Any help would be most appreciated...
Cheers
Ollie
-
Jan 24th, 2006, 05:03 AM
#2
Re: General VB loading
first check whether you have all the .frm and .frx files and all the other .bas or additional files in the current directory and then load it.
-
Jan 24th, 2006, 05:11 AM
#3
Thread Starter
Junior Member
Re: General VB loading
Done that already and all forms are present and correct...
Please note that if I try to load from the same media on anyone else's PC with VB installed, it works fine. This suggests something to do with my setup but I've tried re-installing VB, in fact 2 different versions (enterprise and professional) and the problem still occurs...
Ollie
Mess with the bull... You get the horns!
... Windows XP Home SP2
... Visual Basic 6 Professional Edition
... Office 2003 SP2 Professional Edition
I will always leave a good response to helpful postings... They are a lifeline! 
-
Jan 24th, 2006, 05:13 AM
#4
Re: General VB loading
I do not think that is vb setup problem.
-
Jan 24th, 2006, 06:53 AM
#5
Re: General VB loading
If you create the project on your PC is everything OK?
Does this only happen when you copy a project from somewhere else to your PC?
-
Jan 24th, 2006, 07:14 AM
#6
Re: General VB loading
In addition to Hack's questions - Have you got the same Service Pack as the other machines?
It sounds like it may be a control issue, and as controls are often fixed/upgraded in service packs it is likely to solve the problem.
Oh, and welcome to VBForums!
-
Jan 24th, 2006, 10:00 AM
#7
Re: General VB loading
And have you uninstalled before reinstalling?
-
Jan 24th, 2006, 02:57 PM
#8
Thread Starter
Junior Member
Re: General VB loading
Sorry I took so long to respond. Been a busy day!
Yes, I can create new forms on my PC with no trouble at all...
Yes, I have the same version and service packs as the PC the form was created on...
The form, in fact the whole project, was created directly on a USB memory stick to begin with so all associated files were created in the same directory.
Any other ideas I could possible try?
Ollie
Mess with the bull... You get the horns!
... Windows XP Home SP2
... Visual Basic 6 Professional Edition
... Office 2003 SP2 Professional Edition
I will always leave a good response to helpful postings... They are a lifeline! 
-
Jan 24th, 2006, 03:05 PM
#9
Re: General VB loading
I didn't see your answer to Martin's question.
If you didn't uninstall VB before you tried to re-install it, you could have corrupted the registry. Let us know if you un-installed first.
-
Jan 25th, 2006, 04:28 AM
#10
Thread Starter
Junior Member
Re: General VB loading
Sorry... Yes, I did a full un-install first.
Ollie
Mess with the bull... You get the horns!
... Windows XP Home SP2
... Visual Basic 6 Professional Edition
... Office 2003 SP2 Professional Edition
I will always leave a good response to helpful postings... They are a lifeline! 
-
Jan 25th, 2006, 09:32 AM
#11
Re: General VB loading
 Originally Posted by OllieVB
Sorry I took so long to respond. Been a busy day!
Yes, I can create new forms on my PC with no trouble at all...
Yes, I have the same version and service packs as the PC the form was created on...
The form, in fact the whole project, was created directly on a USB memory stick to begin with so all associated files were created in the same directory.
Any other ideas I could possible try?
Open up a standard exe project and remove the default Form1.
Now, add each form/module from the old project to the one. Add all necessary references and component files. Do a SaveAs to a new folder and use the same project name. Run it to make sure everything works, then close VB.
Open VB back up again and see if you can load the project.
-
Feb 8th, 2006, 02:07 PM
#12
Thread Starter
Junior Member
-
Feb 8th, 2006, 02:26 PM
#13
Re: General VB loading
 Originally Posted by OllieVB
Tried all that. Still didn't fix it!
Any other ideas? All the files are there and it's opening up on other systems. Are there any conflicts when running later versions of Office with VBA?

What does this have to do with VBA? I thought this was a VB6 project.
-
Feb 8th, 2006, 05:58 PM
#14
Re: General VB loading
Assuming it's still VB:
Print the .frm files and .vbp file from the project created on the other computer.
Open a new project on your computer.
Create the same forms, and put the same controls on them.
Close (and save) the project.
Print the .frm files and .vbp file from your project.
Compare the printouts. The difference (the major one, not the little Height, Left, Top and Width differences) is probably the reason your computer is crashing.
-
Feb 9th, 2006, 04:40 AM
#15
Thread Starter
Junior Member
-
Feb 9th, 2006, 06:04 AM
#16
Fanatic Member
Re: General VB loading
Are there any .log files created in the project directories that contain error messages?
Martin J Wallace (Slaine)
-
Feb 9th, 2006, 10:37 AM
#17
Thread Starter
Junior Member
Ollie
Mess with the bull... You get the horns!
... Windows XP Home SP2
... Visual Basic 6 Professional Edition
... Office 2003 SP2 Professional Edition
I will always leave a good response to helpful postings... They are a lifeline! 
-
Feb 9th, 2006, 04:12 PM
#18
Addicted Member
Re: General VB loading
hmm.. make sure that you have the correct form on startup.
Also, is there an error when it crashes?, if so what is it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|