This failure is a show stopper!!! I need a workaround or a patch. Kindly confirm this functionality is supported or not in MC 6.1
Easylanguage snippet simplified. Note: the builtin variable "value9" is defined thus:
Code: Select all
...
external: "c:\mystuff.dll", void, "mycalc", IEasyLanguageObject, double ;
...
value9 = 0.0 ;
...
mycalc( self, 987.654321 ) ;
...
// --------end of EL code ---------
The following C++ statement fails to return a pointer to a user defined easylanguage variable and instead raises a "bad parameter error"
Code: Select all
...
IEasyLanguageVariable *p = pEL->Variables[ "value9" ] ; // this statement fails
...
Code: Select all
--------------------------------------------------------
#import "c:\Program Files\TS Support\MultiCharts\PLKit.dll" no_namespace
...
void __stdcall mycalc( IEasyLanguageObject *pEL, double newprice )
{
//this statement immediately fails and raises "bad parameter exception" in MC
IEasyLanguageVariable *pVar = pEL->Variables["value9"] ; // Fails!
//execution never gets here
if ( p )
pVar->AsDouble[0] = newprice ;
}