Compilation problem when adding a new project

Posted on 2005-05-05
Last Modified: 2010-05-02
I have a visual basic 6.0 projectgroup which compiles fine, but when I add a new project I get a compilation error. The added project can easily compile and creates a dll. It is the project that includes the last added project that fails. There is a difference how the projects are referenced in other projects. When I open the project that fails through the project group, it contains references to some of the other projects through *.vbp files. But when I opens the project alone, the references has been replaced with dll. This does not occur for the new project I added. Here it says that it cannot find the missing vbp file. So basically my question is. How do I create a reference to a project, so when the projects are in the same group, I references by *.vbp files. And when the projects are opened alone the reference are transformed to a dll.

I have a script that compiles the project group using vb6.exe

Best Regards

PS. I get exactly the samme error when I add a reference to a completely empty project, to the project I try to compile
Question by:nielsboldt
    1 Comment
    LVL 9

    Accepted Solution

    You should have a initial project , add the new project, set the old project which the main (with right buton on projet examinator) and save the project (dll) and the  projectgroup. Verify the properties of the main project.
    To test you run
    To compilate I copy projects to anothe dir, compiling one (first dll that it is used by other projects in the groupproject)  to one and before change on the project references the vpb references to dll references.


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    754 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

    22 Experts available now in Live!

    Get 1:1 Help Now