Results 1 to 8 of 8

Thread: how to compile the whole project and create an .exe file with vb6?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    how to compile the whole project and create an .exe file with vb6?

    how to compile the whole project and create an .exe file with vb6?

    I put "option explicit" into all my units, and it cause error when I navigate into a function in which the variables arent declared properly.

    but I dont want to navigate through all the funtions in the app to explore these errors , I need to compile the whole project and detect all the variable which aren declared properly..and I need an exe file too...

    plz help

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: how to compile the whole project and create an .exe file with vb6?

    Well, unless you check each function to see which variables aren't declared and correct them, you won't be able to compile. Or you can remove the option explicit from each form/module and it will compile, but I wouldn't reccomend it. I suggest you go through each function/sub and see what isn't declared correctly.


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Addicted Member
    Join Date
    May 2005
    Posts
    168

    Re: how to compile the whole project and create an .exe file with vb6?

    Hi,

    Ultra2:

    Manov is correct there is no easy way to get around not declaring variables aside from removing Option Explicit.

    To make an EXE out of the project click FILE, MAKE Project1.exe (whatever your project name is), OK. The EXE file will be written to disk.

    Have a good one!
    BK
    Last edited by Black__Knight; Jul 3rd, 2005 at 02:58 PM.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    Re: how to compile the whole project and create an .exe file with vb6?

    How to create an exe file?

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: how to compile the whole project and create an .exe file with vb6?

    n the file menu, you have the 'Make ...exe'

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    Re: how to compile the whole project and create an .exe file with vb6?

    thx, thx, I didnt see the Black Night post when I asked...

    I did it, thx

  7. #7
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: how to compile the whole project and create an .exe file with vb6?

    If you don't have it, you problably have the learning edition of VB (or whatever it is called) which does not allow you to compile the code. If that is the case you will have to buy one which can (Standard, Pro, Enterprise)

  8. #8
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Re: how to compile the whole project and create an .exe file with vb6?

    Try start the program using Ctrl+F5

    It will point out the undeclared vars, but is less 'jolting'

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