Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can anybody help me creating a class
Message
 
 
To
10/08/1998 01:45:48
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00125162
Message ID:
00125232
Views:
18
You have to create a class and make it OLEPUBLIC to make it an OLE server. You create a public method that would do the ALTER TABLE command. Then you just call that method of the server.

How you create the OLE server instance depends on the language you are trying to call the server from. From VFP and VB you can just CreateObject() the server, in VC++ you call the CreateDispatch() method of a class derived from COleDispatchDriver.

Look in the \vfp\samples\servers folder for some code.

>I am writing a class for the first time. Can anybody help me.
>
>I know Foxpro very well, but never used the classes.
>
>My aim is to build a DLL from that class.
>
>The code that is in a class, is to just add a field to a table .
>
>Howeveer I donot know How to use that class in other NON FOXpro applications.
>
>Can any body help me here.
>
>Pl. give me information in detail,
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform