Results 1 to 6 of 6

Thread: a little problem concerning Private\Public declarations in active dll [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Posts
    170

    a little problem concerning Private\Public declarations in active dll [Resolved]

    i have made a dll project but i hav faced a small problem
    that has to be fixed.
    the problem was that i need to access a private variable
    from outside.
    yes, i know that i declared that variable as private so that it cant be changed by a user or, but my point is that
    i want to let an instance of the object
    change the value for another instance , not another library
    or statement.
    there is a read-only property to get that value, if this would
    make a difference.
    a simplified exaple is lik this:

    ***make project1 with class module "class1":

    Private PrivVar

    Public Property Get PrivateVariable()
    PrivateVariable = PrivVar
    End Property

    ***now make project2 with "form1":

    Dim x1 as New class1
    Dim x2 as New class1

    now i want x1 , to change the value of PrivVar in x2.
    can i ????

    another thing,
    can i make something like the Copy Constructor for my dll
    like that in C++ ???
    i want that copy constructor to change all the properties of
    the copeid instance including the private values, something like

    x1 = x2

    can i ???

    please help me doing such a thing .... thanks for ur concern .
    Last edited by ZaidGS; Aug 22nd, 2003 at 04:55 PM.

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