Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Compilation problem when adding a new project

Posted on 2005-05-05
Medium Priority
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

Accepted Solution

dbeneit earned 1000 total points
ID: 13941388
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) 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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

571 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