Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C code embedded in VFP code?
Message
De
25/06/2001 19:29:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00523195
Message ID:
00523334
Vues:
17
>>>Someone indicated to me that you could actually write C code inline with VB code. It was then suggested, that if it could be done in VB, it should be able to be done in VFP. I've never heard of doing this. Anyone ever write C code inline with VFP code?
>>>
>>Steve;
>>
>>I do not believe you can run C code from within VB or VFP. You can call a reference to a compiled C module, which is something we did a lot of with version 2.6 of FPW. Perhaps that is what was meant?
>>
>>Tom
>
>Thanks Tom and Al. That could very well be what he meant. I'm not sure but it sure sounded strange to me when he said that.

Some languages *do* allow you to "inline" code of other languages. It used to be common practice to in-line assembler to get maximum speed in C/C++.

If your main language compiler was capable of calling the compiler of the in-lined language it should theoretically be possible to in-line code of any language into any other. However, VFP is interpreted, not compiled, so it won't work here.

As Thomas suggested, about the closest we can come is DECLARE - DLL.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform