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 )
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Member not found error, only in xHarbour
Member not found error, only in xHarbour
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 )
>
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
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 )
>>
>
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 )
>>
>