All:
I'm testing an activex and having some problems. I an activate it with
oSmtp = TActiveX():New(oWnd, "SocketTools.InternetMail.7" )
but I cannot access any of the properties or methods. I get an error message 'Error description: Error 11944840/3 DISP_E_MEMBERNOTFOUND: TO
Args:'
I can access the methods/properties if I create the object with:
oSmtp := CreateObject("SocketTools.InternetMail.7")
but I want to use it as an activex so I can process events. Does anyone have any idea what the problem may be? I can create/use other activex controls without a problem.
I asked the author and this was their response:
If the Initialize method returns any value other than 0, that’s a failure; the error that you’re getting indicates an invalid procedure call. There can be one of two general causes for this. First, all of the method arguments must be passed as variants or the language must be capable of converting its native data types into variants before invoking the method. Second, when an instance of the control is created, its container must flag it as being in "user mode" (i.e.: a running application, not in design mode). If the development tool that you're using doesn't set the ambient UserMode property to true, then initialization will fail and you won't be able to access most properties.
I'm afraid I can't offer any specific details because I'm not familiar with xHarbour, but generally speaking, our controls expect that they're going to be running in an environment that fully supports the ActiveX control standard and in essence handles controls in exactly the same way that Visual Basic does.
I"m using FHW 10.9 / xHarbour 10.9
Thanks,
Randal