Página 1 de 1

Cannot instantiate an Com component

Publicado: Lun Abr 15, 2013 11:51 pm
por Guest
Hi,
I have a Com Component, which instantiates correctly with other Harbours, e.g. the one bundled with Minigui.
But when I try to active the component inside Xailer, it returns an error.
I tried the code below, but receive the
OLE server not found
error. It's confirmed that the object is registered on the system, and is in the HKEY_CLASSES_ROOT registry section.
I've also tried Creating COM Component objects from other apps, like Excel and Word, and it was successful. But for some reason, it's not reading the object.
In the other versions of Harbour, after running CreateObject, the returned object has a ValType of 'O'. In Xailer, it ends up Undefined 'U'.

TRY
comAmziComLogicServer := GetActiveObject( sAmziComServer )
CATCH
TRY
comAmziComLogicServer := CreateObject( sAmziComServer )
CATCH
sValType := ValType( comAmziComLogicServer )
Return
END
END

Cannot instantiate an Com component

Publicado: Mar Abr 16, 2013 10:02 am
por jfgimenez
Dwayne,
> I have a Com Component, which instantiates correctly with
> other Harbours, e.g. the one bundled with Minigui.
>
> But when I try to active the component inside Xailer, it
> returns an error.
We're not aware of such problem with ole. OLE Support is bundled in
Harbour, and Xailer does not modify its behavior. Xailer only adds a few
functions on top of it to make it compatable with xharbour, that's all.
Please, try linking the other harbour's library libhbwin.a you have. If
possible, tell us what version it is, including date/time or revision id
from harbour's SVN.
Also, try with Xailer 2.7, with both Harbour and xHarbour.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info