JerryKreischer
Programmer
I have an ActiveX DLL that I need for a specialized App that will reset the date/time of the client's machine - wriiten in VB6...
I have 1 public property -
Private mvarClientDate As Variant
Public Property Let ClientDate(ByVal vData As Variant)
mvarClientDate = vData
End Property
Public Property Get ClientDate() As Variant
ClientDate = mvarClientDate
End Property
I have a module that contains a 'Sub Main()'
Public Sub Main()
Dim cls As New ClientTime
On Error Resume Next
If IsDate(cls.ClientDate) Then
Date = Format(cls.ClientDate, "MM/DD/YYYY"
Time = Format(cls.ClientDate, "HH:MM:SS"
Else
MsgBox "Could not set date/time..."
End If
End Sub
I also have the OBJECT info re: the control defined in my page:
function CreateTimeClient() {
document.write(' <OBJECT ID="TimeClient" CLASSID="CLSID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"\n');
document.write(' TYPE = "application/x-oleobject"\n');
document.write(' CODEBASE=" document.write('<param name=ClientDate value="01/01/2004 06:00:00 AM" />');
document.write(' </OBJECT>\n');
}
When I execute this, the param (ClientDate) is not being passed to the DLL (I have used other MSGBOXs to verify this)...
Does anyone know what I'm missing??? Do I somehow have to 'Get' the param value?? How??
Thanx in advance
Jerry
I have 1 public property -
Private mvarClientDate As Variant
Public Property Let ClientDate(ByVal vData As Variant)
mvarClientDate = vData
End Property
Public Property Get ClientDate() As Variant
ClientDate = mvarClientDate
End Property
I have a module that contains a 'Sub Main()'
Public Sub Main()
Dim cls As New ClientTime
On Error Resume Next
If IsDate(cls.ClientDate) Then
Date = Format(cls.ClientDate, "MM/DD/YYYY"
Time = Format(cls.ClientDate, "HH:MM:SS"
Else
MsgBox "Could not set date/time..."
End If
End Sub
I also have the OBJECT info re: the control defined in my page:
function CreateTimeClient() {
document.write(' <OBJECT ID="TimeClient" CLASSID="CLSID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"\n');
document.write(' TYPE = "application/x-oleobject"\n');
document.write(' CODEBASE=" document.write('<param name=ClientDate value="01/01/2004 06:00:00 AM" />');
document.write(' </OBJECT>\n');
}
When I execute this, the param (ClientDate) is not being passed to the DLL (I have used other MSGBOXs to verify this)...
Does anyone know what I'm missing??? Do I somehow have to 'Get' the param value?? How??
Thanx in advance
Jerry