General information
Category:
ActiveX controls in VFP
Hi,
Thanx for the inputs
some success here.
but been caught with the 1 that requires parameter input
it is like this
TA_RetCode TA_S_AD( int startIdx,
int endIdx,
const float inHigh[],
const float inLow[],
const float inClose[],
const int inVolume[],
int *outBegIdx,
int *outNbElement,
double outReal[] )
I put this in the .h file
class CMy_dllApp : public CWinApp
{
public:
int My_Ta_Initialize();
int My_Ta_Shutdown(void);
TA_RetCode My_TA_S_AD( int startIdx,
int endIdx,
const float inHigh[],
const float inLow[],
const float inClose[],
const int inVolume[],
int *outBegIdx,
int *outNbElement,
double outReal[] );
CMy_dllApp();
and
in the .cpp
TA_RetCode CMy_dllApp::My_TA_S_AD(
int startIdx,
int endIdx,
const float inHigh[],
const float inLow[],
const float inClose[],
const int inVolume[],
int *outBegIdx,
int *outNbElement,
double outReal[] )
{
TA_RetCode retCode;
retCode = TA_S_AD( <== First line error points here
int startIdx,
int endIdx,
const float inHigh[],
const float inLow[],
const float inClose[],
const int inVolume[],
int *outBegIdx,
int *outNbElement,
double outReal[] );
return retCode;
}
Where the input parameters are the first 6 and the last 3 are output.
Return shows execution success or failure ..
I get compiler error saying
C:\WIN98\Desktop\ta-lib-0.2.0-msvc\ta-lib\my_dll\my_dll.cpp(94) : error C2144: syntax error : missing ')' before type 'int'
C:\WIN98\Desktop\ta-lib-0.2.0-msvc\ta-lib\my_dll\my_dll.cpp(94) : error C2660: 'TA_S_AD' : function does not take 0 parameters
C:\WIN98\Desktop\ta-lib-0.2.0-msvc\ta-lib\my_dll\my_dll.cpp(102) : error C2059: syntax error : ')'
Error executing cl.exe.
Please help me on doing this
suhashegde
PS
The function Ta_Initialise and TA_shutdown worked cool
But when i added this it bombed how can I rectify them ?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only