When will it all end?...Oh, in 2 hours!...Cheers.
Not sure if I read your question correctly as I am having a day which can only be described as a hedgehog playing in a liquidiser. :(
In your 1st DLL you could have events, which when "fired" could be used to execute somesort of function/event in the 2nd DLL. ie
Inside 1st DLL
VB Code:
Public Event CreateDatabase()
Public Property SaveToTextFile(ByVal strFilename As String)
If Trim$(strFilename) = "" Then
Raiseevent CreateDatabase
Else
'Rest Of Code
End If
End Property
In your application
VB Code:
Private Sub Command1_Click()
1stDLL.SaveToTextFile = txtFilename.Text 'if = to "" then will fire event
End Sub
Private Sub 1stDLL_CreateDatabase()
Dim 2ndDLL As New DLL2
'Code to create database using 2ndDLL
Set 2ndDLL = Nothing
End Sub
can you see what I am getting at, or am I talkign a load of lorry drivers and jam?