Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFPr.dll be used in 'C'
Message
 
À
04/05/2011 00:39:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01509265
Message ID:
01509403
Vues:
93
Hi

All I need to be able to do is use the VFP API from within C. Since I am not adding functionality to VFP I do not need an FLL. I am using VFP functionality from within another application. I have toyed with the idea of using COM but I was not quite able to make all of it work so I thought it might be simpler just to call functions that reside in the VFP runtime dll. In VFP you can use the Declare statement to access such things as the Windows API so I thought perhaps I could reverse the process and access the VFP runtime from outside.

Simon

>It notifies the vfp runtime of all the functions that can be called from within vfp, including parameters and return type.
>If you have some helper funcs used only internally in C you don't need to add them into those structures.
>Think of it as a vTable in COM terms.
>
>>It appears the 3rd link is what I want. I just need to understand why the following is needed.
>>
>>
>>FoxInfo myFoxInfo[] = {
>>   {"DBAPPEND", (FPFI) Example, 1, "I"},
>>};
>>FoxTable _FoxTable = {
>>   (FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
>>};
>>
>>
>>
>>Thanks,
>>Simon
>>
>>
>>>This is a good place to start -- Accessing the Visual FoxPro API
>>>http://msdn.microsoft.com/en-us/library/s2bceth7(v=vs.80).aspx
>>>
>>>On that page -- How to: Add Visual FoxPro API Calls
>>>http://msdn.microsoft.com/en-us/library/9aw3xtcz(v=vs.80).aspx
>>>
>>>API Library Routines A-Z -- shows exactly what can be done and how
>>>http://msdn.microsoft.com/en-us/library/5x36hyx5(v=VS.80).aspx
>>>
>>>FLL project quick start
>>>http://fox.wikis.com/wc.dll?Wiki~CreatingEmptyFLLProjectFromTemplate
Simon White
dCipher Computing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform