Results 1 to 7 of 7

Thread: [RESOLVED] convert module(.bas) for vb6 to vb2005

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Resolved [RESOLVED] convert module(.bas) for vb6 to vb2005

    it's a .bas module to handle a .dll file..how can i convert it to use in vb2005??? i get a lot of errors when i just copy paste it in a module in vb2005

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: convert module(.bas) for vb6 to vb2005

    They are two different languages so you cannot simply copy and paste. You could use the upgrade wizard but you're likely to have many errors to fix anyway. Most people would advise that you simply write fresh VB.NET code that best provides the functionality that you want.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: convert module(.bas) for vb6 to vb2005

    ok successfully converted it

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: convert module(.bas) for vb6 to vb2005

    the problem is that i get the error message cannot find .dll when the .dll is in the project folder ....

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: convert module(.bas) for vb6 to vb2005

    Have you added this DLL on the References tab of the project properties?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: convert module(.bas) for vb6 to vb2005

    there's an error when adding it in reference... it says "please make sure that the file is accessible, and that it is a valid assembly or COM component"

    this is a .dll to read a game database and that was used for vb 6.0 .... how can i convert it so that it is compatible with vb 2005???

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: convert module(.bas) for vb6 to vb2005

    cool i solved it!!! i put the .dll in bin\Debug and it's working now!!!

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