Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement