grewegreg
IS-IT--Management
- Apr 1, 2007
- 23
I have been given a task of writing an application that interfaces with another application written in .NET. (The version is unknown, but the Framework looks like 1.1) This application has an exposed COM interface (DLL) that I am attempting to access. The DLL has a help document that lists all its Interfaces, Classes, Methods, etc.
I am using VFP9, SP1. I have not been unable to successfully instantiate an object using SET Library or DECLARE DLL.
I have read their documentation, they have not listed any direct reference of how to truly access their classes, except for the code snippet I have listed below. If anyone can help me decipher this (which appears to be a VB6 reference), I would appreciate it. If I can get an object instantiated, I know I can access the rest of the COM classes and methods.
I have listed one class below, with two of its properties, if that might help. Thanks in advance.
Greg Grewe
Diamond Consulting, LLC
I am using VFP9, SP1. I have not been unable to successfully instantiate an object using SET Library or DECLARE DLL.
I have read their documentation, they have not listed any direct reference of how to truly access their classes, except for the code snippet I have listed below. If anyone can help me decipher this (which appears to be a VB6 reference), I would appreciate it. If I can get an object instantiated, I know I can access the rest of the COM classes and methods.
I have listed one class below, with two of its properties, if that might help. Thanks in advance.
Code:
Private sub mMonitorAdd(ByVal r As Info)
Dim Listener as New clsListener
Listener.GetSettings = r 'OR Listener.WriteSettings r
End Sub
Code:
Public Instance Constructor
Info - Overloaded. Initializes a new instance of the Info class.
Public Instance Properties
IPAddress - Sets / Gets string with IP Address.
Name - Get / Sets string with name.
Greg Grewe
Diamond Consulting, LLC