Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Location
    Griffith. Australia
    Posts
    138
    Thanks
    4
    Thanked 4 Times in 4 Posts

    Question Visual Basic 6 + Just In Time Compiler

    Hey, I was wanting to know if it is possible to distribute a just-in-time compiler for a visual basic application with the application itself. what I want to be able to do is modify the source code on the computer and then to run the project with the changes taking place. I know it is possible to an extent because the Visual Basic 6 IDE does something similar with the project being compiled when you execute the run command. I want to do something similar, but the destination computer won't have visual basic installed on it.

  • #2
    Regular Coder
    Join Date
    May 2007
    Location
    UK
    Posts
    180
    Thanks
    0
    Thanked 18 Times in 18 Posts
    Does it have to be VB6? I use NScript from www.codeproject.com which performs this function for VB.NET (or C#).

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Location
    Griffith. Australia
    Posts
    138
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by SouthwaterDave View Post
    Does it have to be VB6? I use NScript from www.codeproject.com which performs this function for VB.NET (or C#).
    Yeah, it does need to be VB6, thanks for the reference to NScript, i'll have a look at it and see if it can be adapted for VB6 or if there is anything similar for VB6.

  • #4
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,378
    Thanks
    11
    Thanked 592 Times in 572 Posts
    how complicated of changes are you needing to make?
    if you need something simple like modifing strings, you can edit them by opening the .exe file in binary- strings inside of a module are stored verbatum.
    don't forget about 2 bytes for every char.

    you can open your .exe in notepad to get an idea of what i am talking about.

    you if you need something more complicated, i haven't heard of a JIT vb6 complier, and you can't redistrubute visual studio...

    perhaps you can setup the part you need to be able to modify in vbscript.
    vb6 can run vbscript using either a webbrowser control, or the scripting runtime (reference).

    you can evaluate a text file, registry string, etc.
    that data could be easily manipluated/updated.

    while you don't get all the bells and whistles of vb6, vbscript will let you do quite a bit...


    hope this helps-
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •