Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C code embedded in VFP code?
Message
 
To
25/06/2001 19:29:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00523195
Message ID:
00524078
Views:
20
>>>>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.

You're correct. Apparently the language is Power Basic which does have the capability to insert inline C code. Never heard of it myself.

Thanks,
Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform