954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Global Variables not so 'global'

I have a VB6-dll that is referenced in both a VB.Net aplication and another VB6-dll.

Now, I get Information (strings containing filenames) from the VB.NET application and store them in global variables in a module.
Then I want to use these variables in the other VB6-dll, however they are empty.

the code is:

Classmodule ... AKS

Public Property Get PfadMeta() As String
    PfadMeta = PfadMetaDB
End Property
Public Property Let PfadMeta(ByVal Val As String)
    PfadMetaDB = Val
End Property


Module

Public PfadMetaDB As String


VB.NET application

myAKS = New AKS
myAKS.PfadMeta = "C:\Data\..."


VB6.dll

Set myAKS = New AKS
myFile = myAKS.PfadMeta


=> myFile = ""

Malgrim
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You