|
-
Feb 21st, 2012, 09:01 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Moving VB6 to Windows 7
I am moving my VB6 IDE to a Windows 7 PC. All of the forms have loaded except for 5. When I try to add the form I get:
Errors during load. Refer to 'C:\Program Files\Microsoft Visual Basic\techni\frmAdditiveInventory.log' for details.
When I look at the log it has:
Line 4: The Form or MDIForm name frmAdditiveParam is already in use; cannot load this form.
I find it interesting that the form is frmAdditiveInventory, yet the error has frmAdditiveParam. Something is rotten in the state of Denmark.
So somewhere, it thinks the form is already loaded. Any idea what I need to change in order to get these 5 forms to load into the IDE?
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 09:05 AM
#2
Re: Moving VB6 to Windows 7
Look at the .vbp file - with notepad - any duplication of that filename or formname?
You do have the original - before you tried to load it into the Win7 machine - right? I would check that one first and then look at the mess that isn't loading in Win7
Also - edit the .frm with notepad - are the headers ok in both of those forms??
-
Feb 21st, 2012, 09:30 AM
#3
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
I think I may have gotten a hint of what is happening. As an example:
It loads
frmInvAdditiveParam but does not load
frmInvAdditiveInventory or
frmInvAddChg
** note the 1st 8 characters **?
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 09:57 AM
#4
Re: Moving VB6 to Windows 7
So rename one of those frm files to not have the 8 character "generic" similarity...
Edit the frm file to change the name within as well.
Edit the vbp file to change the name with that.
If that loads you have answered your question.
This post mentions an 8 character issue...
http://www.developerfusion.com/threa...n-mangle-path/
-
Feb 21st, 2012, 10:39 AM
#5
Re: Moving VB6 to Windows 7
-
Feb 21st, 2012, 12:07 PM
#6
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
The new PC is running SP6. The old one is on SP5.
I got all the forms across by editing the vbp file and the frm files. Now the compile is stumbling over some 3rd party components. I hope to get a clean compile done before the day is up.
Thanks for the help.
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 12:15 PM
#7
Re: Moving VB6 to Windows 7
I've been having issues porting projects over to my new PC as well. Many of my projects were done originally in VB5 and make use of certain controls that were not included in VB6 as well as some 3rd party controls.
I know I saved that tools folder from VB5 that has the reg enteries but have been unable to locate it so far I think I am close now if I can just find those reg enteries.
-
Feb 21st, 2012, 12:25 PM
#8
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
I think it is having trouble with Graph.ocx & threed32.ocx
Not sure how to register those using Windows 7
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 12:49 PM
#9
Re: Moving VB6 to Windows 7
Have you tried using regsrv32?
I generally just double click the ocx in explorer then select regsvr32 as the program to open with and set it to always use it so I can just double click any ocx to try and register it. I think this worked with Threed32.ocx under XP may work under Win7 as well.
-
Feb 21st, 2012, 01:14 PM
#10
Re: Moving VB6 to Windows 7
> having trouble with Graph.ocx & threed32.ocx
The ActiveX Controls which were shipped/installed with VB5 but not installed with v6 can be found on Disk 2 of the Visual Studio 6 set. They are in CD\Common\Tools\Vb\Controls, see the readme.txt in there.
-
Feb 21st, 2012, 01:21 PM
#11
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
I registered those and got the same error.
License information for this component not found. You do not have an appropriate license to use this functionality in the design environment.
No more details than that.
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 01:29 PM
#12
Re: Moving VB6 to Windows 7
Check out this link
http://support.microsoft.com/kb/194751
Got it by searching up
Graph.ocx License information for this component not found. You do not have an appropriate license to use this functionality in the design environment
-
Feb 21st, 2012, 01:42 PM
#13
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
Wow. That was fast. I ran that and it completed successfully. However, in the compile process, when it get s to writing the EXE, I get the same error message. I tried compiling to a different directory, but same error.
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 01:48 PM
#14
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
OK. That got fixed by running this
http://support.microsoft.com/kb/195353/EN-US/
One of my forms has an "input past end of file" error that I need to investigate now.
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 02:20 PM
#15
Thread Starter
PowerPoster
Re: Moving VB6 to Windows 7
Finally got a clean compile! Now to test.
Thanks for the help.
===================================================
If your question has been answered, mark the thread as [RESOLVED]
-
Feb 21st, 2012, 02:32 PM
#16
Re: Moving VB6 to Windows 7
 Originally Posted by Pasvorto
Thanks for the link, now I don't need to keep looking for that VB5 tools folder
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
|