Results 1 to 4 of 4

Thread: multiple versions of my files

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8

    multiple versions of my files

    I've been a vb programmer for many years. The location of files (not the actual files) included in your vb project was saved in the project. If you modified the file (module, class, etc) every project received the latest version because there was only the one file. Not to mention the obvious advantage to only having one instance of a file on your harddrive. In dotnet it appears that when I add one of my existing modules or classes, a copy of it is made in the project folder. So now there are two instances of my file (a very undesirable situation as it can lead to confusion if a problem arises, made even more confusing as the number of instances of a file increases) Also, if I edit any of these modules or classes won't I now have to check all projects to see if they use the modified file and make sure each gets updated? And what about source control? The concept itself depends upon only 1 instance of all controlled files on your drive.

    Thanks,
    Robb

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    "In dotnet it appears that when I add one of my existing modules or classes, a copy of it is made in the project folder."

    In stead of adding the class, try inheriting from it.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8
    Thanks for replying,

    But you can't inherit from modules can you?
    And ocx's?

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    "But you can't inherit from modules can you?
    And ocx's?"

    As I understand it you can inherit from ANY object.

    The use of ActiveX controls is discouraged in .NET but you can import them and, therefore, inherit from that import.

    I have never tried inheriting from a module and it looks as though that is not an option, but Could'nt you use a Dll?

    Perhaps one of the more knowledgable guys will pick this up.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width