Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Convert VB.NET sources into VB6

Convert VB.NET sources into VB6

Scheduled Pinned Locked Moved Visual Basic
helpcsharpcomjson
10 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marsup54
    wrote on last edited by
    #1

    Hello, I would like convert codes sources VB.NET into VB6. I have one application who uses components for VB6 only, so i can't migrate now to VB.NET I saw good sources in your site ( like "http://www.codeproject.com/vb/net/autoupdate.asp") and i'm trying to use it in my application, but i have some problem with API/functions VB.NET. Example : How convert "Imports System.IO", "System.IO.StreamReader", "System.Net.WebClient", ... What code must i use in VB6 ? Thanks a lot for your help ! Bye PS : sorry for my english, i'm french ... -- modified at 11:27 Monday 23rd January, 2006

    D J L K 4 Replies Last reply
    0
    • M marsup54

      Hello, I would like convert codes sources VB.NET into VB6. I have one application who uses components for VB6 only, so i can't migrate now to VB.NET I saw good sources in your site ( like "http://www.codeproject.com/vb/net/autoupdate.asp") and i'm trying to use it in my application, but i have some problem with API/functions VB.NET. Example : How convert "Imports System.IO", "System.IO.StreamReader", "System.Net.WebClient", ... What code must i use in VB6 ? Thanks a lot for your help ! Bye PS : sorry for my english, i'm french ... -- modified at 11:27 Monday 23rd January, 2006

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You'll have to re-write your application from scratch. VB6 doesn't have any equivalent to the constructs you listed. You can pretty easily convert VB6 code to VB.NET, not definately not the other way around. It'll take some serious work to do that. For instance, VB6 has no native web access built in. You'll have to use an external control in VB6 to do the same thing, like downloading a web page. About the best you'll be able to get is the basic idea and steps behind the process of what you want to do. Converting the code is next to impossible. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You'll have to re-write your application from scratch. VB6 doesn't have any equivalent to the constructs you listed. You can pretty easily convert VB6 code to VB.NET, not definately not the other way around. It'll take some serious work to do that. For instance, VB6 has no native web access built in. You'll have to use an external control in VB6 to do the same thing, like downloading a web page. About the best you'll be able to get is the basic idea and steps behind the process of what you want to do. Converting the code is next to impossible. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        M Offline
        M Offline
        marsup54
        wrote on last edited by
        #3

        Ok, thanks for the answer ! I must find anothers things ! :D Bye

        1 Reply Last reply
        0
        • M marsup54

          Hello, I would like convert codes sources VB.NET into VB6. I have one application who uses components for VB6 only, so i can't migrate now to VB.NET I saw good sources in your site ( like "http://www.codeproject.com/vb/net/autoupdate.asp") and i'm trying to use it in my application, but i have some problem with API/functions VB.NET. Example : How convert "Imports System.IO", "System.IO.StreamReader", "System.Net.WebClient", ... What code must i use in VB6 ? Thanks a lot for your help ! Bye PS : sorry for my english, i'm french ... -- modified at 11:27 Monday 23rd January, 2006

          J Offline
          J Offline
          Joshua Quick
          wrote on last edited by
          #4

          It might be possible to keep the VB.NET code and call it from VB6. Take a look at the VB Fusion section on MSDN. http://msdn.microsoft.com/vbrun/vbfusion/[^] I've never tried this myself. Nor want to. So, you're on your own from here. -- modified at 13:21 Monday 23rd January, 2006

          M 2 Replies Last reply
          0
          • M marsup54

            Hello, I would like convert codes sources VB.NET into VB6. I have one application who uses components for VB6 only, so i can't migrate now to VB.NET I saw good sources in your site ( like "http://www.codeproject.com/vb/net/autoupdate.asp") and i'm trying to use it in my application, but i have some problem with API/functions VB.NET. Example : How convert "Imports System.IO", "System.IO.StreamReader", "System.Net.WebClient", ... What code must i use in VB6 ? Thanks a lot for your help ! Bye PS : sorry for my english, i'm french ... -- modified at 11:27 Monday 23rd January, 2006

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            In my opinion, it is impossible to do that.

            1 Reply Last reply
            0
            • J Joshua Quick

              It might be possible to keep the VB.NET code and call it from VB6. Take a look at the VB Fusion section on MSDN. http://msdn.microsoft.com/vbrun/vbfusion/[^] I've never tried this myself. Nor want to. So, you're on your own from here. -- modified at 13:21 Monday 23rd January, 2006

              M Offline
              M Offline
              marsup54
              wrote on last edited by
              #6

              Ok, i will try !!! Thx

              1 Reply Last reply
              0
              • J Joshua Quick

                It might be possible to keep the VB.NET code and call it from VB6. Take a look at the VB Fusion section on MSDN. http://msdn.microsoft.com/vbrun/vbfusion/[^] I've never tried this myself. Nor want to. So, you're on your own from here. -- modified at 13:21 Monday 23rd January, 2006

                M Offline
                M Offline
                marsup54
                wrote on last edited by
                #7

                Hi, Is it possible to use dll VB.NET in my application VB6 ? If it's possible, how can i use it ? I think that i need a new parameter for RemotePath in the class AutoUpdate ? Thanks for your help !

                J 1 Reply Last reply
                0
                • M marsup54

                  Hi, Is it possible to use dll VB.NET in my application VB6 ? If it's possible, how can i use it ? I think that i need a new parameter for RemotePath in the class AutoUpdate ? Thanks for your help !

                  J Offline
                  J Offline
                  Joshua Quick
                  wrote on last edited by
                  #8

                  It is possible. Go to the link I provided in my previous post. It contains several articles by Microsoft on how to do this.

                  1 Reply Last reply
                  0
                  • M marsup54

                    Hello, I would like convert codes sources VB.NET into VB6. I have one application who uses components for VB6 only, so i can't migrate now to VB.NET I saw good sources in your site ( like "http://www.codeproject.com/vb/net/autoupdate.asp") and i'm trying to use it in my application, but i have some problem with API/functions VB.NET. Example : How convert "Imports System.IO", "System.IO.StreamReader", "System.Net.WebClient", ... What code must i use in VB6 ? Thanks a lot for your help ! Bye PS : sorry for my english, i'm french ... -- modified at 11:27 Monday 23rd January, 2006

                    K Offline
                    K Offline
                    Kedar Potdar
                    wrote on last edited by
                    #9

                    Hi, As far as i could think of it, why don't you convert the .NET code into a .NET Assembly (DLL) and register it in GAC so that you can use it in VB6 by adding it's reference into your VB6 project? Hope that might help and if you find some better way then please post it on the forum. With warm regards, KEDAR :) -- modified at 7:45 Wednesday 1st February, 2006

                    M 1 Reply Last reply
                    0
                    • K Kedar Potdar

                      Hi, As far as i could think of it, why don't you convert the .NET code into a .NET Assembly (DLL) and register it in GAC so that you can use it in VB6 by adding it's reference into your VB6 project? Hope that might help and if you find some better way then please post it on the forum. With warm regards, KEDAR :) -- modified at 7:45 Wednesday 1st February, 2006

                      M Offline
                      M Offline
                      marsup54
                      wrote on last edited by
                      #10

                      Hi, We have find a good solution. You can see it in french forum : http://www.developpez.net/forums/viewtopic.php?t=446317 And download source for VB6 here : http://thierry_aim.developpez.com/downloads/AutoUpdateExe.zip Thanks for your help and interrest. Bye

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups