Página 1 de 1

Valentina Database via COM

Publicado: Jue Abr 30, 2009 8:25 pm
por Simon White
Hi
I was testing the use of Valentina Database with Xailer via COM but it doesn't come packaged as as OCX file but rather as a DLL. So can such a COM object be imported into Xailer the way an ActiveX type can be?
It sure is nice to see a class created automatically for ActiveX controls. It would be nice if this could be done with COM objects in the DLL format.
Regards,
Simon White

Valentina Database via COM

Publicado: Sab May 02, 2009 11:53 am
por jfgimenez
Simon,
> I was testing the use of Valentina Database with Xailer via COM
> but it doesn't come packaged as as OCX file but rather as a DLL.
Well, an OCX is simply executable code, that can be contained into a DLL,
OCX, or any other file extension. However, OCX and DLL are the most used
extensions for OCX.
> So can such a COM object be imported into Xailer the way an
> ActiveX type can be?
>
> It sure is nice to see a class created automatically for ActiveX
> controls. It would be nice if this could be done with COM objects
> in the DLL format.
ActiveX components (OLE automation server) and ActiveX controls (OCX) are so
far different things, althought both are OLE related. Xailer can create a
class to use an ActiveX control, because typelib information is a must in
any OCX. But ActiveX components doesn't contain typelib information, so it's
not possible to create such classes.
If that component is indeed an OCX, then you only need to register it (by
using regsvr32.exe) and it will appear in the list shown by Xailer's IDE.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Valentina Database via COM

Publicado: Dom May 03, 2009 12:51 am
por Simon White
Well I did register it using Regsvr32 and it said it succeeded but it does not show in the list of activeX controls so in that case I guess it must be an ActiveX component.
> Simon,
>
>> I was testing the use of Valentina Database with Xailer via COM
>> but it doesn't come packaged as as OCX file but rather as a DLL.
>>
>
> Well, an OCX is simply executable code, that can be contained into
> a DLL, OCX, or any other file extension. However, OCX and DLL are
> the most used extensions for OCX.
>
>
>> So can such a COM object be imported into Xailer the way an
>> ActiveX type can be?
>>
>> It sure is nice to see a class created automatically for ActiveX
>> controls. It would be nice if this could be done with COM
>> objects in the DLL format.
>>
>
> ActiveX components (OLE automation server) and ActiveX controls
> (OCX) are so far different things, althought both are OLE related.
> Xailer can create a class to use an ActiveX control, because
> typelib information is a must in any OCX. But ActiveX components
> doesn't contain typelib information, so it's not possible to create
> such classes.
>
> If that component is indeed an OCX, then you only need to register
> it (by using regsvr32.exe) and it will appear in the list shown by
> Xailer's IDE.