Hi,
I'm currently trying to write some .net code that is able to interact with
the Microsoft ISA Server's COM object. Unfortunately, MS does only provide
support for C++ and VBS and this may be the reason why I'm having some
strange problems:
Basically, I try to call the function 'Signal' (see
http://msdn.microsoft.com/library/de...on_signal.asp), that is defined as follows (VB):
Sub Signal( _
[ ByVal SignalCount As Long ], _
[ ByVal AdditionalKey As Long ], _
[ ByVal ShortDesc As String ], _
[ ByVal LongDesc As String ], _
[ ByVal EventID As Long ], _
[ ByVal EventSource As String ], _
[ ByVal EventStrings As Variant ], _
[ ByVal EventData As Variant ], _
[ ByVal EventCategory As Integer ], _
[ ByVal EventType As Integer ] _
)
Every possible argument of this function is optional - and, as I don't need
to specify one, I just wanted to call:
myobj.Signal()
Now, COM does not want to do me this - and fails with the following error
message:
System.Runtime.InteropServices.COMException (0x8007070C): Invalid data type.
That's why, I'd guess that there might be some incorrect marshalling between
my .net application and the COM component. Can anyone give me a hint on
what's going on here?
Thanks
Peter