Progress
Open Client
Developer’s Guide
Using Early Binding
For early binding, the objects must be known at compile time. In VB, for example, you must add the Type Library generated by ProxyGen (and embedded in the
.dll
file) to the VB project references list. To do this, choose ProjectReferences from the menu bar in Microsoft Visual Basic. The name for the library is either the COM Object Description that you can specify in ProxyGen, or AppObject-nameLib if you don’t specify the COM Object Description.
Once your objects are known to the compiler, you can then write code using an early binding reference. For example, if you have a proxy object,
Account
, you might specify the following reference to create the object in VB:
Note the naming conventions shown in Table 7–1, where AppObject-name is the name of an AppObject specified in ProxyGen.
For more information on, proxy naming conventions, see Generating and Managing Proxies."
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |