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.

OCX Events

Xailer professional forum in English
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

OCX Events

Mensaje por Nick Hilder »

Hi Jose
I have been back working on the Codejock stuff again. ;-)
I have lots more of it working
You helped me with this event
EVENT EventAddedEx( @upEvent )
You showed me how is did this
e := TOleAuto():New( PointerToInt( upEvent ) )
I could get to the real event object, this is greate
You gave me this wrapper to do it
XA_FUNC( POINTERTOINT )
{
hb_retnl( (long) hb_parptr( 1 ) );
}
I have one that is nearly the same, I'm hoping I just need a slight
different wrapper
Event DayMetrics( dDay, @uMetrics)
It's missing the p. (the other one was up) Valtype returns a P just like the
other one did
Here's what the OLE Viewer shows me
void EventChangedEx(CalendarEvent* pEvent); This one works now
void DayMetrics(DATE Day, IDatePickerDayMetrics* Metrics);
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OCX Events

Mensaje por jfgimenez »

Nick,
> Event DayMetrics( dDay, @uMetrics)
>
> It's missing the p. (the other one was up) Valtype returns a P just like
> the other one did
'u' means unknown, while 'up' means unknown pointer
> void EventChangedEx(CalendarEvent* pEvent); This one works now
> void DayMetrics(DATE Day, IDatePickerDayMetrics* Metrics);
'IDatePickerDayMetrics * Metrics' seems to be a pointer to an interface, but
not a pointer to an instance of that interface. Since that parameter is
passed by reference, it seems that you sould fill it with a pointer to an
interface of type 'IDatePickerDayMetrics', which seems to be not so easy
from .prg level. A sample written in VB or Delphi could help here, in order
to know what should be returned.
--
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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

OCX Events

Mensaje por jfgimenez »

Nick,
> Event DayMetrics( dDay, @uMetrics)
>
> It's missing the p. (the other one was up) Valtype returns a P just like
> the other one did
'u' means unknown, while 'up' means unknown pointer
> void EventChangedEx(CalendarEvent* pEvent); This one works now
> void DayMetrics(DATE Day, IDatePickerDayMetrics* Metrics);
'IDatePickerDayMetrics * Metrics' seems to be a pointer to an interface, but
not a pointer to an instance of that interface. Since that parameter is
passed by reference, it seems that you sould fill it with a pointer to an
interface of type 'IDatePickerDayMetrics', which seems to be not so easy
from .prg level. A sample written in VB or Delphi could help here, in order
to know what should be returned.
--
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
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

OCX Events

Mensaje por Nick Hilder »

I will see what I can find
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:4868b84d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> Event DayMetrics( dDay, @uMetrics)
>>
>> It's missing the p. (the other one was up) Valtype returns a P just like
>> the other one did
>
> 'u' means unknown, while 'up' means unknown pointer
>
>
>> void EventChangedEx(CalendarEvent* pEvent); This one works now
>> void DayMetrics(DATE Day, IDatePickerDayMetrics* Metrics);
>
> 'IDatePickerDayMetrics * Metrics' seems to be a pointer to an interface,
> but not a pointer to an instance of that interface. Since that parameter
> is passed by reference, it seems that you sould fill it with a pointer to
> an interface of type 'IDatePickerDayMetrics', which seems to be not so
> easy from .prg level. A sample written in VB or Delphi could help here, in
> order to know what should be returned.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

OCX Events

Mensaje por Nick Hilder »

I will see what I can find
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:4868b84d$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> Event DayMetrics( dDay, @uMetrics)
>>
>> It's missing the p. (the other one was up) Valtype returns a P just like
>> the other one did
>
> 'u' means unknown, while 'up' means unknown pointer
>
>
>> void EventChangedEx(CalendarEvent* pEvent); This one works now
>> void DayMetrics(DATE Day, IDatePickerDayMetrics* Metrics);
>
> 'IDatePickerDayMetrics * Metrics' seems to be a pointer to an interface,
> but not a pointer to an instance of that interface. Since that parameter
> is passed by reference, it seems that you sould fill it with a pointer to
> an interface of type 'IDatePickerDayMetrics', which seems to be not so
> easy from .prg level. A sample written in VB or Delphi could help here, in
> order to know what should be returned.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>
Responder