Compile a visual Basic 6 project in relase mode

Posted on 2007-08-02
Last Modified: 2010-08-05
Hi there,

I've written a project in Visual Basic 6 intended to be distributed. The project works Ok and I'd like to compile it into a relase version instead of a debug one but I can't manage to find where I can make this choice.
This is not VB.Net, but apparently, there is no more area for VB6 :-(

Thanks in advance
Question by:B_B_Boris
    LVL 38

    Accepted Solution

    When you compile your executable, it is ready for release.  Debugging in VB6, is done through interpreted code in the IDE.  The only other thing to do is use an installer such as the PDW to create an install package.
    LVL 43

    Expert Comment

    In your original question (now deleted) I have checked what I posted for my final comment.  It went something like this.

    There isn't a difference in VB between debug and release.
    There is a menu option to compile the project into an exe.

    the original question was
    LVL 8

    Assisted Solution

    To prove this, you can do the following for a test.

    enter the statement Debug.Assert(0) at the beginning of a button press routine.

    compile the code and run from the IDE, notice that when you press the button the cursor is the "Debug.Assert(0) statement.

    Now compile to an exe. And run the code, again pressing the same button. You should see that the program runs as it always has.

    BTW: the guys before me, really answered this question. Sometimes its nice to prove it to oneself as well.
    LVL 17

    Expert Comment

    by:Shanmuga Sundaram
    Hi B_B_Boris

    If  your major need is to provide a version number for you application, then open your project in visual basic, Click on the "Project" menu, select "Project Properties" option, In the "make" tab enable the "Auto Increment" option which will automatically provide you a release / version number to your project. Hope this was the thing you was expecting from EE.

    D.Shanmuga sundaram
    LVL 43

    Expert Comment

    Any reason why my comment wasn't considered for a split?

    Author Comment


    PaulHews was the 1st one to provide the answer. You mention a final comment in my question now deleted but I didn't find it.
    My project is actually a dll and not an exe and I used Anthony2000 suggestion to check what happened in the dll case.

    Hope you understand ...
    LVL 43

    Expert Comment

    OK, thanks for clarifying - I have asked a moderator to check out why the other question was deleted (not moved) despite it having relevant comments.  So far no sensible answer.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now