Results 1 to 9 of 9

Thread: Noob .net to vb6 question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Noob .net to vb6 question

    A really noob question here…..

    I have only access to visual studio .net, and have created a very simple app that does not require any .net stuff. I find on some older pc’s I get an error when opening my program, I believe that these pc’s do not have any .net runtimes. My question is can I somehow compile my program in .net to be compatible with the older vb6 runtimes or is that just a daft question?

    Thanks

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

    Re: Noob .net to vb6 question

    I'm afraid that .Net is very different from VB6, in order to compile for VB6 you will need to have VB6 installed (and change the code, as it is not the same!).

    The problem on the other PC's would be that you do not have the .Net runtimes (known as the Framework), but if you write a .Net application this does need to be installed. You can either provide this as part of your installation, or link to the Microsoft website for the users to install the framework from there.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Re: Noob .net to vb6 question

    Thanks

    Nice avatar pic do you race lfs or rfactor?

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

    Re: Noob .net to vb6 question

    Cheers! I have no idea what you mean by "lfs or rfactor".

    My avatar is David Coulthard in a McLaren Mercedes Formula 1 car.. a bit out of date now, but it shows my favourite driver and team at the same time!

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Re: Noob .net to vb6 question

    "lfs or rfactor".
    Online racing games- F1, F300 and most other cars.....

    Btw: just got hold of a visual basic 5 i had lying around, will try to see if i can use that.

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

    Re: Noob .net to vb6 question

    I only tend to play Gran Turismo, but I just found rFactor and it looks good so far - I'll have a proper look later

    VB5 will be very good in terms of size of the installation package, but you will probably need to make quite a few changes to the code (about the same as VB6).

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Re: Noob .net to vb6 question

    Just ported my program back to vb5 works great, now just need to remeber how i get "sleep" to work...

    rfactor, you need a Force feedback wheel to appreciate it.

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Noob .net to vb6 question

    Why not just include the .NET framework with your setup package instead of having had to go back to vb5?

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Oct 2005
    Posts
    23

    Re: Noob .net to vb6 question

    The end users do not know how to insert a picture in ms word, and they do not have admin access to there pc's, just want to make thing as simple a they can be.

    Sleep got it:
    Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)

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