Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multipal projects

Status
Not open for further replies.

NCH

Programmer
Feb 18, 2003
8
ZA
Hi,

I've just started to use VB and would like to know how I must handle the following situation.

I want to create multiple projects, one that will contain the menu the other a supplier recon. In the menu project I will open a UniVerse session.

How do I open the supplier recon project within the menu project without loosing the connection?

Thanks,

NCH
 
If you want to associate multiple projects, add them to a project group. You do this by opening one project and selecting "File/Add Project" and adding it. When you save, you will be prompted to save a group file (ends in .grp) which will, when opened, open all the projects in its group.

This is primarily intended to be able to open a dll project and a standard exe project that functions as a client to same in the same instance of the VB IDE, allowing debugging across both projects.

I'm not sure if you are doing this; but it sort of looks like from the info you provide that the menu project could work fine as an exe, and the recon maybe a dll.

Or, if I don't understand you properly, and you are saying that the menu and the supplier recon are just two different user interfaces, then you don't need two projects, you only have to put two forms in the same project.

Bob Rodes
 
Hi,

Let me put it like this. We want to use VB as a front-end to a UniVerse database.

The idea behind it to have a complete set of programs, which the users can use to capture their debtor, creditors, cashbook, etc. We would like for each routine to be a separate project, linked together by the menu program.

I had a look at ActiveX and could not produce the above result.

Do you have any suggestion on how to approach the problem?

Thanks,

NCH
 
Ok, I think I see what you are looking for.

Basically, when you talk about a complete set of programs, each one doing different related things, that's an architectural issue that can be implemented in different ways. One of the ways that you can do it is via ActiveX DLLs or EXEs. There are issues that you haven't addressed in your posts. For example, what if you are running one of your programs, and you close the menu program? Do you want your, say, cashbook program to close too?

If you want "each routine to be a separate project" then you can use ActiveX EXEs. Compile the exe and instantiate a top level object in it from the menu program.

That's the best I can do without further information.

Bob
 
I've tried ActiveX EXEs and DLLs. The problem I had was when the user logs onto the UV server (through the menu) and I execute a EXE or DLL, I could not manage to keep the connection.

Yes, I would like to close all running projects when the user exits the menu.

Thanks,

NCH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top