Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a C++ DLL to use with FoxPro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00048334
Message ID:
00050806
Vues:
33
The other question is what if I have a C++ (instead of C) program, and I want to make a DLL out of it to call from FoxPro. Is it possible? If so, how?

You can't call C++ objects or methods directly from VFP due to the fact that
C++ mangles names and requires stackframes that VFP can't access.

What this means is that you should write a wrapper around any C++ code that
handles the class instantiation and calling of methods. This true for any
API access, really. Only other C++ programs typically can call C++ classes
directly and even then you have to go through all sorts of girations to
get the nameing conventions to sync.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform