General information
Category:
COM/DCOM and 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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only