kelljohm
Mar 9th, 2006, 04:02 AM
HI, I am having a problem passing a parameter from an EXE to a dll. If I pass a basic type then it works OK, such as string, Long,etc. However. I have created a new type. If I pass the parameters withing the same project it works OK but when I try to do it to a DLL then I get the error
Code call looks like this
Private oServer As pServer.c_Main
Private Sub cmdStartServer_Click()
Set oServer = New pServer.c_Main
oServer.StartServer
End Sub
Private Sub Command1_Click()
Dim newAlarm As c_Alarm_T
Set newAlarm = New c_Alarm_T
newAlarm.notificationId = "12345"
oServer.push_Alarm (newAlarm)
End Sub
I get the run-time error 438. Object doesn't support this property or method. Any help greatly appreciated.
Code call looks like this
Private oServer As pServer.c_Main
Private Sub cmdStartServer_Click()
Set oServer = New pServer.c_Main
oServer.StartServer
End Sub
Private Sub Command1_Click()
Dim newAlarm As c_Alarm_T
Set newAlarm = New c_Alarm_T
newAlarm.notificationId = "12345"
oServer.push_Alarm (newAlarm)
End Sub
I get the run-time error 438. Object doesn't support this property or method. Any help greatly appreciated.