Página 1 de 1

Member not found error, only in xHarbour

Publicado: Mié May 18, 2011 10:12 pm
por DC
Hi,
I'm using some external objects from a vendor SDK. The objects don't
include source code. The initializations run fine ( CreateObject( "..."
), and some of the methods and properties seem ok.
But when I try to perform a Load method from one of the created objects,
there's a DISP_E_MEMBERNOTFOUND error.
This happens only in xHarbour. When using other languages, the Load
method runs fine.
Is there an alternative means of running a method from an existing
object, that can be tried here?
sProcessFile := "whatthe.tf.xml"
oProcess := CreateObject( "DJEC900.Project" )
oProcess:EnableLogging( .T. )
oProcess:Author( "WhyYou" )
sAuthor := oProcess:Author
// Fine, so far.
// Error occurs here:
oProcess:Load( sProcessFile )

Member not found error, only in xHarbour

Publicado: Mié May 18, 2011 10:19 pm
por DC
Never mind. Looks like Invoke( "Load" ) works.
On 5/18/2011 4:12 PM, DC wrote:
> Hi,
>
> I'm using some external objects from a vendor SDK. The objects don't
> include source code. The initializations run fine ( CreateObject( "..."
> ), and some of the methods and properties seem ok.
>
> But when I try to perform a Load method from one of the created objects,
> there's a DISP_E_MEMBERNOTFOUND error.
>
>
> This happens only in xHarbour. When using other languages, the Load
> method runs fine.
>
> Is there an alternative means of running a method from an existing
> object, that can be tried here?
>
>
> sProcessFile := "whatthe.tf.xml"
> oProcess := CreateObject( "DJEC900.Project" )
> oProcess:EnableLogging( .T. )
> oProcess:Author( "WhyYou" )
> sAuthor := oProcess:Author
>
> // Fine, so far.
>
> // Error occurs here:
> oProcess:Load( sProcessFile )
>

Member not found error, only in xHarbour

Publicado: Mié May 18, 2011 10:25 pm
por DC
oProcess:Invoke( "Load", sProcessFile ),
it doesn't generate an error, but am not sure about the results, yet.
On 5/18/2011 4:19 PM, DC wrote:
> Never mind. Looks like Invoke( "Load" ) works.
>
>
>
> On 5/18/2011 4:12 PM, DC wrote:
>> Hi,
>>
>> I'm using some external objects from a vendor SDK. The objects don't
>> include source code. The initializations run fine ( CreateObject( "..."
>> ), and some of the methods and properties seem ok.
>>
>> But when I try to perform a Load method from one of the created objects,
>> there's a DISP_E_MEMBERNOTFOUND error.
>>
>>
>> This happens only in xHarbour. When using other languages, the Load
>> method runs fine.
>>
>> Is there an alternative means of running a method from an existing
>> object, that can be tried here?
>>
>>
>> sProcessFile := "whatthe.tf.xml"
>> oProcess := CreateObject( "DJEC900.Project" )
>> oProcess:EnableLogging( .T. )
>> oProcess:Author( "WhyYou" )
>> sAuthor := oProcess:Author
>>
>> // Fine, so far.
>>
>> // Error occurs here:
>> oProcess:Load( sProcessFile )
>>
>