Hi all!
I'm writing a class-DLL at the moment and have a big problem: I have a structure in the DLL and two properties with the structure as type.
All is fine until here.
Now - in another program - I create an instance from the DLL-class an want to set the ".Text"-Part from the structure-properties. But this works only for the Array-Property ("Multi").
Do you know, where the problem is? I'm trying for hours and hours now, am I to stupid?
If you can, please help me!
- Fazzyer
I'm writing a class-DLL at the moment and have a big problem: I have a structure in the DLL and two properties with the structure as type.
VB.NET:
Public Class MyDLLClass
Public Structure STest
Dim Text As String
End Structure
...
Private FSingle, FMulti() As STest
...
Public Property Single() As STest
Get
Return FSingle
End Get
Set ...
End Property
Public Property Multi() As STest()
Get
Return FMulti
End Get
Set ...
End Property
End Class
All is fine until here.
Now - in another program - I create an instance from the DLL-class an want to set the ".Text"-Part from the structure-properties. But this works only for the Array-Property ("Multi").
VB.NET:
Private DllClass As New MyDLLClass()
DllClass.Multi(0).Text = "This works fine"
DllClass.Single.Text = "This doesn't work [Expression is a value and therefore cannot be the target of an assignment]"
Do you know, where the problem is? I'm trying for hours and hours now, am I to stupid?
- Fazzyer