Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a COM object with VFP60
Message
De
10/04/2001 13:24:12
 
 
À
10/04/2001 12:51:11
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00494070
Message ID:
00494089
Vues:
25
>I am new at using COM with VFP. When I try to gen a COM object, I get the message "Can not build a DLL without OLE public classes". Where do I find these classes and how to I add them to my project.
>
>thanks in advance,
>Raymond Ross
>State of Michigan

You have to declare a class "OLE Public" before you can build a project, which contains that class, into a DLL. The easiest way to do it through the VFP IDE is to:
Open the class that has the methods and properties you want to expose in the DLL.
Once it is open, click on the Class>Class Info menu.
A class information dialog box will open. There is a check box that is labeled "OLE Public". Click it.
Then build the project into a DLL.

This works for VFP6 or VFP7.

You can also make a class OLE Public using this syntax if you defined the class programatically:

DEFINE CLASS theClass AS MyClass OLEPUBLIC
* Class Definition code goes here
ENDDEFINE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform