Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use a C++ .lib in VFP
Message
 
 
À
07/11/2006 09:44:23
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01167262
Message ID:
01167694
Vues:
6
Suhas,

>U have used .def to export the fumction . Thats all i could know.

Yes, using the .def file like that allows the C++ member functions to be exported without any obfuscating C declarations to "mess" up the code.

If you look in the .cpp file you'll see the member functions, the .h contains their declarations.

You should be able to get the code you are trying to use adapted into that structure, if not the member functions can always call out to the classes you are trying to use.

>there is this in a .c file
>....
>....
>....
>more codes here ...
>/* Generated */
>/* Generated */ #if defined( _MANAGED )
>/* Generated */ enum class Core::TA_RetCode Core::AD( int startIdx,
>/* Generated */ int endIdx,
>/* Generated */ cli::array^ inHigh,
>/* Generated */ cli::array^ inLow,
>/* Generated */ cli::array^ inClose,
>/* Generated */ cli::array^ inVolume,
>/* Generated */ [Out]int% outBegIdx,
>/* Generated */ [Out]int% outNbElement,
>/* Generated */ cli::array^ outReal )
>/* Generated */ #elif defined( _JAVA )
>/* Generated */ public TA_RetCode AD( int startIdx,
>/* Generated */ int endIdx,
>/* Generated */ double inHigh[],
>/* Generated */ double inLow[],
>/* Generated */ double inClose[],
>/* Generated */ int inVolume[],
>/* Generated */ MInteger outBegIdx,
>/* Generated */ MInteger outNbElement,
>/* Generated */ double outReal[] )
>/* Generated */ #else
>/* Generated */ TA_RetCode TA_AD( int startIdx,
>/* Generated */ int endIdx,
>/* Generated */ const double inHigh[],
>/* Generated */ const double inLow[],
>/* Generated */ const double inClose[],
>/* Generated */ const int inVolume[],
>/* Generated */ int *outBegIdx,
>/* Generated */ int *outNbElement,
>/* Generated */ double outReal[] )
>/* Generated */ #endif
>.....
>.........
>........
>more codes here
>
>So should i include TA_AD in .def file like
>
>TA_AD @1
>
>inplace of DeQuote @1
>after making a .def in the project ?
>
>suhashegde
>
>P.S. : Can you provide more pointers please ???
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform