Unexpected C++ Compiler Error using SDK interface

Questions about MultiCharts and user contributed studies.
misterbear
Posts: 4
Joined: 26 Sep 2010

Unexpected C++ Compiler Error using SDK interface

Postby misterbear » 30 Sep 2011

I am getting an unexpected compiler error when attempting to return an integer value using the member function AsInteger. According to the
EasyLanguage Extension SDK
pdf of 02/08/2006 (see EasyLanguage Property Reference table C). AsInteger should be acceptable when returning a value through an EasyLanguageVariable. Below is an example C++ code snippet. Please Advise

Code: Select all

IEasyLanguageObject *pEL = passed_in_from_powerlanguage_call
IEasyLanguageVariable *p = pEL->Variables[ "some_defined_var_name" ] ;
p->AsTrueFalse[0] = true ;      <---- works fine!
p->AsDouble[0] = 1.2345 ;     <---- works fine!
p->AsInteger[0] = 12345 ;      <---- ERROR, compiler says AsInteger is not a member!


Q: is there a more relevant (current) SDK document than the EasyLanguage 02/08/2006 document for interfacing to PowerLanguage?

User avatar
TJ
Posts: 6520
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Re: Unexpected C++ Compiler Error using SDK interface

Postby TJ » 30 Sep 2011

misterbear wrote:I am getting an unexpected compiler error when attempting to return an integer value using the member function AsInteger. According to the
EasyLanguage Extension SDK
pdf of 02/08/2006 (see EasyLanguage Property Reference table C). AsInteger should be acceptable when returning a value through an EasyLanguageVariable. Below is an example C++ code snippet. Please Advise

Code: Select all

IEasyLanguageObject *pEL = passed_in_from_powerlanguage_call
IEasyLanguageVariable *p = pEL->Variables[ "some_defined_var_name" ] ;
p->AsTrueFalse[0] = true ;      <---- works fine!
p->AsDouble[0] = 1.2345 ;     <---- works fine!
p->AsInteger[0] = 12345 ;      <---- ERROR, compiler says AsInteger is not a member!


Q: is there a more relevant (current) SDK document than the EasyLanguage 02/08/2006 document for interfacing to PowerLanguage?



see post #6.
viewtopic.php?f=16&t=6929
These users thanked the author TJ for the post:
Henry MultiСharts


Return to “MultiCharts”