Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ DLL help
Message
De
20/08/2008 10:57:45
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01340071
Message ID:
01340379
Vues:
12
Thanks Christof. Gives me a good starting point.

>Hi James,
>
>It would be easier if you somehow could get a procedural DLL instead...
>
>OK, first of all you need to create a new FLL project in C++ (see http://blog.donnael.com/2008/04/creating-an-fll/ for instructions). It might be easiest to complete this sample FLL in order to see if you can compile it flawlessly.
>
>The files you got should contain several .H files and at least one .LIB file. Copy all these files into the project directory of your FLL.
>
>The FLL project should have one .H file when you created it. Open this header file and add the #include statements you got from the C++ DLL vendor.
>
>When you created the FLL, there was one step to add WINAPIMS.LIB to the project. Follow the same step to add SampleSelectDLL.lib to the project. The names are separated by a blank.
>
>Create a new function like this:
>
>class __declspec(dllimport) CSampleSelect oSampleSelect;
>
>void CallWhatever(ParamBlk  *parm)
>{
>  oSampleSelect.AMethod();
>}
>
>
>The name of the method depends on what the class is offering. If everything worked OK, you should get IntelliSense showing you available methods. Now compile the project. If you got an error message, we need to fix this, otherwise the next step will be to add functions to the FLL that call the methods of the object. In VFP you would use SET LIBRARY TO to call these functions.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform