gerrythistle
Technical User
would like the ability to share information between 2 VB6 applications through a dll. The problem is that the 2nd app never gets the data supplied by the first.
Any ideas or direction?
Created and compiled the dll
added the reference in each application
declared as follows in APP#1
option Explicit
public x as CAnimal ' see class code below
Private Sub MDIForm_Load()
set x = new CAnimal
x.Animal = "Animal Name"
end sub
declared as follows in APP#2
option Explicit
public x as CAnimal
Private Sub MDIForm_Load()
set x = new CAnimal
msgbox x.Animal
end sub
Dll visual Basic Code
Option Explicit
Private mvarAnimal As String 'local copy
Public Property Let Animal(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Animal = 5
mvarAnimal = vData
End Property
Public Property Get Animal() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Animal
Animal = mvarAnimal
End Property
Thanks for any help
Any ideas or direction?
Created and compiled the dll
added the reference in each application
declared as follows in APP#1
option Explicit
public x as CAnimal ' see class code below
Private Sub MDIForm_Load()
set x = new CAnimal
x.Animal = "Animal Name"
end sub
declared as follows in APP#2
option Explicit
public x as CAnimal
Private Sub MDIForm_Load()
set x = new CAnimal
msgbox x.Animal
end sub
Dll visual Basic Code
Option Explicit
Private mvarAnimal As String 'local copy
Public Property Let Animal(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Animal = 5
mvarAnimal = vData
End Property
Public Property Get Animal() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Animal
Animal = mvarAnimal
End Property
Thanks for any help