Wiki Home

Ole Public


Namespace: WIN_COM_API

Ole Public is an option when defining a class.

Specifies that the class in an Automation server can be accessed by an Automation client.

If a program containing an OLEPUBLIC class definition is added to a project, an executable (.exe) file or a dynamic link library (.dll) containing the class can be created interactively in the Project Manager or with BUILD EXE or BUILD DLL. The EXE or DLL is automatically registered with the operating system, and becomes available to any Automation client.

Example
DEFINE CLASS RatFace AS Custom OLEPUBLIC
  Name=RatFace
ENDDEFINE

Source: VFP6 Help
See also: Fox OLEAutomation Example
Excellent explanation and examples in MSDN Magazine article by Erik Moore - October 2001
Category C _ O _ M Category Exam 70-155 Hot Topic
( Topic last updated: 2007.07.18 10:08:56 AM )