Creating a custom lookup extension in visual basic, Create a new visual studio project, D creating a custom – Echelon OpenLDV User Manual

Page 133: Lookup extension in visual basic

Advertising
background image

OpenLDV Programmer’s Guide

125

interface ILdvxConfigure; // add to coclass SampleLookupCsv

Add additional private methods and properties to your

ISampleLookupCsv interface, or remove it if it is not used.

Creating a Custom Lookup Extension in Visual

Basic

This section describes the procedure for creating the framework for a custom

lookup extension component in Visual Basic using Microsoft Visual Studio 2008.

Use a similar procedure for Microsoft Visual Studio 2010, or later releases.
Prerequisite: You must install the OpenLDV 4.0 SDK and Microsoft Visual

Studio 2008 SP1 (or later).
To create the framework for a custom lookup extension component using

Microsoft Visual Studio 2008, perform the following tasks:

1. Start Microsoft Visual Studio
2. Create a new Class Library project
3. Add a reference to the Echelon OpenLDV xDriver 1.0 Type Library
4. Add a COM class
5. Delete the default project class, Class1.vb
6. Import xDriver types to your System namespace
7. Implement the ILdvxLookup interface
8. Build and register the COM server
9. Create a custom xDriver profile
10. Test the lookup extension
11. Rebuild and re-register the COM Server
12. Retest the lookup extension
13. Optionally, add implemented ILdvxLookup interfaces to the sample

component’s type library

14. Optionally, add additional private methods or properties to the

ISampleLookupCsv interface

The following sections describe these tasks in more detail.

Create a New Visual Studio Project

From the Visual Studio main window, select File → New → Project to open the

New Project dialog, as shown in Figure 28 on page 126.

Advertising