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
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.
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
Re: how to compile the whole project and create an .exe file with vb6?
How to create an exe file?
Re: how to compile the whole project and create an .exe file with vb6?
n the file menu, you have the 'Make ...exe'
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
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)
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'