raxinaga
raxinaga

Reputation: 421

How to debug a COM object?

I have an IIS server running with this asp code:

<%
 Dim form
 set form = Server.CreateObject("Library.Form")

 form.Load "file.html"

 Dim sStr = form.formhtml

 Response.Write sStr
%>

How can I find out what are others functions and properties belong to form object? like Load and formhtml

Unfortunately I don't have the source code, so I try to do watch through attach to process with VS2015, but I not getting the inside properties and functions.

Upvotes: 2

Views: 384

Answers (1)

Furkan Omay
Furkan Omay

Reputation: 1067

Create a new VB.NET solution (Windows Forms or Console) and paste that code.

Dim form
set form = Server.CreateObject("Library.Form")
form.Load "file.html"
Dim sStr = form.formhtml

You should be able to debug it inside of Visual Studio.

Since CreateObject uses late binding, in order to obtain full IntelliSense support I suggest adding a reference to the DLL of Library.Form object. Adding a reference is called early binding, with that you can browse all properties without even executing the code.

Upvotes: 1

Related Questions