Results 1 to 7 of 7

Thread: Convert VB 6 project to VS 2008

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    12

    Convert VB 6 project to VS 2008

    Hello,

    I am not sure if this is the correct spot to post this...

    I am trying to convert an old VB 6 project to VS 2008, but it is giving me the following error:

    Upgrade failed: Exception occurred: Could not load referenced component:
    TABCTL32.OCX (1.1.0)
    You need to install this component before you upgrade the project.
    It is recommended you install VB6.0, with all referenced components, and ensure the application compiles and runs before upgrading.
    I don't have VB6.0, so how do I work around this?

    The files I am trying to convert are here:
    www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=65071&lngWId=1

    Thanks,

    Craigbert

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Convert VB 6 project to VS 2008

    Best thing to do is to not convert.

    Instead of converting a project, it's better to just rewrite it from scratch.

    Since it looks like you're trying to convert a project that isn't yours, I'm guessing you probably don't have a handle on just what it does and could re-write it yourself. Depending on what you are looking for you may want to see if someone has already written a .NET version that you wouldn't need to convert.

    That aside, the OCX in question is the Tab control. I'd venture a guess you don't have it installed on your machine.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    12

    Re: Convert VB 6 project to VS 2008

    Techgnome,

    Thanks for replying. You are correct, this is not my project and I am unsure how to go about this.

    So how do I find out if someone has converted this?

    Thanks,

    Craigbert

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Convert VB 6 project to VS 2008

    One way would be to send an email to everyone in the world, but I wouldn't suggest that, or any other method.

    Converting a project from VB6 to VB.Net is less than ideal at the best of times, and this situation does not come anywhere close to them... even if you do manage to get it to work (eventually), it will almost certainly have speed/functionality issues.

    Rather than trying to convert a VB6 project you found, it would be a far better idea to find a VB.Net equivalent instead.

  5. #5
    PowerPoster keystone_paul's Avatar
    Join Date
    Nov 2008
    Location
    UK
    Posts
    3,327

    Re: Convert VB 6 project to VS 2008

    I think what Nick probably means is there may be a similar application written in .net. It doesn't look like the kind of thing that would be easy to convert using the built in tools so unless you had VB6 and could run it and see what it does then re-create it in .Net you'll be a bit stuck.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    12

    Re: Convert VB 6 project to VS 2008

    I found this at Planet Source Code and I have looked at www.codeproject.com for something similar, but I have not been successful.
    Where are some other places I could look?

    Thanks,

    Craigbert

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2009
    Posts
    12

    Re: Convert VB 6 project to VS 2008

    ....or....if someone knows of a sample project that allows a user at runtime to drop controls onto a window that can be dynamically resized....?

    Thanks,

    Craigbert

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