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.

Cannot instantiate an Com component

Xailer professional forum in English
Responder
Guest

Cannot instantiate an Com component

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Cannot instantiate an Com component

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder