471,337 Members | 896 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

COM problem in .net

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

Jul 21 '05 #1
0 940

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.