Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use a C++ .lib in VFP
Message
From
07/11/2006 09:44:23
Suhas Hegde
Dental Surgeon
Sirsi, India
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01167262
Message ID:
01167647
Views:
6
>Suhas,
>
>Did you download the dequote.zip file from my website? It has all the code in it. The way it's written there's no __declspec required.
>
>>Is it possible for You to show me 1 example in the project to export a Function say TA_MAtype ?
>
>>I dont know what to add where to add.
>>
>>The docs says there must be a __declspec(dllexport) but i dont know where to add it

Hi,
I downloaded the zip and viesed it.

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

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 ???
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform