Using a CLSID to connect to objects
\The Sandbox \PB History & Future \New In PB7 \CLSID to Connect
New look
Object-Centric
Development
Nonmodal
Development
Painter
Features
Wizards
To-Do List
Customizable
Shortcuts
Other IDE
Jaguar
Components
Jaguar Clients
COM/MTS
Components
COM/MTS
Clients
Automation
Servers
Remote
Debugging
Jag & COM/MTS
Validation
DB Interfaces
DB Profiles
DB Utilities
DB
Reconnecting
Creating
ASA DB
DW ActiveX
HTML DW
Image
Support
New controls
SP Updates
ActiveX
Documents
SizeMode
Property
CLSID to
Connect
HTML Books

Description

The functions you use to connect to ActiveX servers accept a class ID (CLSID) as a parameter as an alternative to a programmatic identifier (ProgID) so that you can connect to servers that do not have a ProgID. All ActiveX servers are required to have a CLSID.

Usage

ConnectToObject, ConnectToNewObject, ConnectToRemoteObject, and ConnectToNewRemoteObject all accept either a ProgID or a CLSID for the classname argument.

The following ConnectToNewObject calls are equivalent. The first uses the ProgID for Microsoft Word 97; the second uses its CLSID:

    myoleobject.ConnectToNewObject("Word.application")
    myoleobject.ConnectToNewObject &
    ("clsid:000209FF-0000-0000-C000-000000000046")
PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com