S
Support
Hello:
I have a VB.NET DLL with a public structure:
Public Class OCIDIIRRegistry
Public Structure OCIDIIRRegistryReturn
Public OCIDIIRimpliciterror As String
Public OCIDIIRexpliciterror As String
Public OCIDIIRvalueRequested
End Structure
the DLL has a Function
Public Function SetRegistry_String(ByVal Registryname As String, ByVal
registryvalue As String) As OCIDIIRRegistryReturn
OCIDIIRimpliciterror = OCIDIIRErrors.BeginErrorNOTOK
OCIDIIRexpliciterror = "Error in SetRegistry_String: " + Registryname +
" [" + OCIDIIRexpliciterror + "]"
End Function
'===========================================================================
=============
In VB.NEt, I want to get the values OCIDIIRimpliciterror and
OCIDIIRexpliciterror from SetRegistry_String
I tried in the VB.NET app:
Public Structure MyOCIDIIRRegistryReturn
Public MyOCIDIIRimpliciterror As String
Public MyOCIDIIRexpliciterror As String
Public MyOCIDIIRvalueRequested
End Structure
Dim MyRegistrySetting As New OCIDIIRRegistry.GAINSCOM.OCIDIIRRegistry ' name
of the DLL
Dim MyRegistryStructure As MyOCIDIIRRegistryReturn
MyRegistryStructure = MyRegistrySetting.GetRegistry_String("server", "SQL")
' as an attempt to pass the structure but I get an squigly error :
Value of type 'OCIDIIRRegistry.GAINSCOM.OCIDIIRRegistry.OCIRegistryReturn'
cannot be converted to 'DIIRMAIN.frmMAIN.MyOCIDIIRRegistryReturn'
What does that mean ? and should I do about it ?
Thanks
TErry
I have a VB.NET DLL with a public structure:
Public Class OCIDIIRRegistry
Public Structure OCIDIIRRegistryReturn
Public OCIDIIRimpliciterror As String
Public OCIDIIRexpliciterror As String
Public OCIDIIRvalueRequested
End Structure
the DLL has a Function
Public Function SetRegistry_String(ByVal Registryname As String, ByVal
registryvalue As String) As OCIDIIRRegistryReturn
OCIDIIRimpliciterror = OCIDIIRErrors.BeginErrorNOTOK
OCIDIIRexpliciterror = "Error in SetRegistry_String: " + Registryname +
" [" + OCIDIIRexpliciterror + "]"
End Function
'===========================================================================
=============
In VB.NEt, I want to get the values OCIDIIRimpliciterror and
OCIDIIRexpliciterror from SetRegistry_String
I tried in the VB.NET app:
Public Structure MyOCIDIIRRegistryReturn
Public MyOCIDIIRimpliciterror As String
Public MyOCIDIIRexpliciterror As String
Public MyOCIDIIRvalueRequested
End Structure
Dim MyRegistrySetting As New OCIDIIRRegistry.GAINSCOM.OCIDIIRRegistry ' name
of the DLL
Dim MyRegistryStructure As MyOCIDIIRRegistryReturn
MyRegistryStructure = MyRegistrySetting.GetRegistry_String("server", "SQL")
' as an attempt to pass the structure but I get an squigly error :
Value of type 'OCIDIIRRegistry.GAINSCOM.OCIDIIRRegistry.OCIRegistryReturn'
cannot be converted to 'DIIRMAIN.frmMAIN.MyOCIDIIRRegistryReturn'
What does that mean ? and should I do about it ?
Thanks
TErry