Hi,
I've created a ComClass object in VB.Net, and have a public function called DoSchedule. I want to execute this function using a vbscript, so I wrote this:
Imports System.Runtime.InteropServices
<ComClass(Rotate.ClassId, Rotate.InterfaceId, Rotate.EventsId)> _
Public Class Rotate
Public Sub New()
MyBase.New()
End Sub
Public Sub DoSchedule()
...
End Sub
End Class
----------------------
Dim obj
Set obj = CreateObject("ScheduleCOM.Rotate")
obj.DoSchedule
Once I execute this vbscript, it gives me this error:
"Error: Could not find a part of the path "C:\WINNT\system32\
Code: 80070003
Source: mscorlib"
I've tried copying the ScheduleCOM.dll and other dlls that it uses to the system32 folder but doesn't seem to have any effect. Not sure what the error message means.
Am I required to implement an interface for DoSchedule? I had the impression that by creating the ComClass object, it will be handled automatically.
Any pointers would be very much appreciated.
Thanks!
Jason
I've created a ComClass object in VB.Net, and have a public function called DoSchedule. I want to execute this function using a vbscript, so I wrote this:
Imports System.Runtime.InteropServices
<ComClass(Rotate.ClassId, Rotate.InterfaceId, Rotate.EventsId)> _
Public Class Rotate
Public Sub New()
MyBase.New()
End Sub
Public Sub DoSchedule()
...
End Sub
End Class
----------------------
Dim obj
Set obj = CreateObject("ScheduleCOM.Rotate")
obj.DoSchedule
Once I execute this vbscript, it gives me this error:
"Error: Could not find a part of the path "C:\WINNT\system32\
Code: 80070003
Source: mscorlib"
I've tried copying the ScheduleCOM.dll and other dlls that it uses to the system32 folder but doesn't seem to have any effect. Not sure what the error message means.
Am I required to implement an interface for DoSchedule? I had the impression that by creating the ComClass object, it will be handled automatically.
Any pointers would be very much appreciated.
Thanks!
Jason