Can't access component events in Progress 9.1d

famorales

New Member
Hi.

I'm new in this forum, and i'm asking for help accessing component events.

here the trouble.

I insert an ocx (it's a type library .tlb) in a widget. Progress names the component R5DVRClient and assign a CtrlFrame COM-HANDLE.

/*Definitions*/
DEFINE VARIABLE comCliente AS COM-HANDLE.

/*Main-Block*/
ASSIGN
comCliente = CtrlFrame:COM-HANDLE.

Note. I have no problems using attributes or methods from this component. those work ok.

Then i use the component viewer to find the event i need. the viewer showme this window:

viewer1.gif


Next, i copy the sample to use in my code.

In my procedure, code will see like this.

PROCEDURE CtrlFrame.R5DVRClient.FetchSettingsCompleted:
DEFINE INPUT PARAMETER DVR AS COM-HANDLE.
DEFINE INPUT PARAMETER success AS LOGICAL.

/* my code for work is here */

END PROCEDURE.

This compiles fine.

Ok. When i successfully access to the component, execute the method "FetchSettings":

comCliente:R5DVRClient:DVRList:DVRs:ITEM(1):FetchSettings()

This works fine too. But when the component raise the "FetchSettingsCompleted" event, progress give me this error:

c:\temp\error.gif


"The USER-INTERFACE-TRIGGER procedure c:\temp\p17844cf.ab has sent to sub-procedure CtrlFrame.R5DVRClient.FetchSettingsColmpeted c:\temp\17844cf.ab parameters do not match. (2570)"

Can anyone help me please. I'm working with Progress 9.1D and March Software SDK (accesing digital video), Windows XP SP2.

Fernando
 
Could you perhaps sent the image as an attachment to this thread. Then maybe we can see what's the problem.

Casper.
 
thanks casper.

The image viewer1.gif, shows the view components app. App shows progress declaration for a procedure event.

The second image "error.gif" shows the message from progress when component raise the "FecthSettingsCompleted" event and progress try to catch it.

Thanks in advance
Fernando
 

Attachments

  • viewer1.GIF
    viewer1.GIF
    24.8 KB · Views: 14
  • error.GIF
    error.GIF
    10.9 KB · Views: 10
Back
Top