Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2005, 05:02 AM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to reuse my application

hi all

i have an small app made in vb which i have to use in my other vb projects.
the application is included in all projects.presently i have included all the forms and modules of the app in all other project.
but there is problem in it whenever i have to make change in an app than i have to do in all the projects.
how can i solve this problem.can activex exe will be the solution if yes than canone provide me the solution



ankur bhargava
 
Old October 17th, 2005, 12:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sharing code is not easy. It is really possible to share only code that is really compact and that does not make any reference to any other files/library. Every file that is shared must be an island of its own, compact and closed. Sharing forms/usercontrols is virtually impossible, because ALL the applications that use them MUST have a reference to all the objects/libraries the form/usercontrol is using.
This is when dll and ocx come to play. When the code become too complex to be shared (and do not wait one more second!) put it in a dll/usercontrol (depends on the type of code).

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL: template reuse ramesh.kumarm XSLT 16 December 1st, 2006 06:27 AM
Reuse in ASP. rupen Classic ASP Basics 3 June 29th, 2005 10:12 AM
Reuse the recordset object eapsokha Classic ASP Professional 4 February 27th, 2004 12:05 AM
How Do I Reuse data from a RecordSet? steve456 Classic ASP Professional 2 October 21st, 2003 05:30 AM
Reuse of ASP Code hoffmann Classic ASP Databases 6 August 8th, 2003 10:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.