Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can anybody help me creating a class
Message
 
 
À
10/08/1998 01:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00125162
Message ID:
00125232
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform