Regardless though, this will only work with methods that are properly exported with Win32API export rules. Any `raw` C/C++ functions won't just work and any API that follows Win32API rules *generally* uses OUT parameters to return values.
FWIW, VFP Compiler allows you to embed C++ code in your VFP prgs with the whole thing then compiled into a C++ dll allowing processing of VFP strings and other variables in and out of your own or external C++ calls.
Also FWIW and after a hiatus since last century of working on GUI, I've been staggered by the performance of compiled apps. On an Atom slug, the splash screen survives approx 1/10 second before encrypted connection strings and all the usual setup is completed and requesting login.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1