Results 1 to 16 of 16

Thread: [RESOLVED] Moving VB6 to Windows 7

  1. #1

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Resolved [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]

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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??

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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/

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  5. #5
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: Moving VB6 to Windows 7

    Are you running SP6?

  6. #6

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  7. #7
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    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.

  8. #8

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  9. #9
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    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.

  10. #10
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    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.

  11. #11

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  12. #12
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  13. #13

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  14. #14

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  15. #15

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    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]

  16. #16
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: Moving VB6 to Windows 7

    Quote Originally Posted by Pasvorto View Post
    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.
    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
  •  



Click Here to Expand Forum to Full Width