Software Archive
Read-only legacy content
17061 Discussions

Active X Control

sumitm
Beginner
712 Views
Hi,

I am trying to insert an Active X control like 3D Axum Graph object into a diloag box. There is no example of this in the samples, so I started from scratch and found that cominitialize has to be inserted before the dialog control.
Can anybody advise me how this can be done with a simple example.
When I put in cominitialize , I got a run time error of DFDLGnnn.dll missing or not registered.
Can anyone please help.
Thanks
0 Kudos
3 Replies
Intel_C_Intel
Employee
712 Views
Hi,

There are 2 Active X control examples on the kit:

...DialogFxplorer and ...DialogMMPlayer

DFDLG100.DLL is required for a dialog box application using an Active X control. It should have been placed in your Windows system directory by the VF installation, and registered. The error message you are receiving indicates that the file is not there, or it is not registered. DFDLG100.DLL is part of the VF run-time kit that you can download from our web site.

Regards,
Leo
0 Kudos
sumitm
Beginner
712 Views
Leo,
Thanks for your help. I down loaded the latest service pack for Win 2k and then ran the runtime installation and both MMplayer and fxplorer ran.
My test program also ran and I can now get a dialog box with 3D plot frame which can be rotated etc. I need something like that but the actual data plot does not show up for some reason and I am guessing that is because there is no Avis3D Active X insertion option. I saw only Avis2D Active X option and thats what I used here.
Where can I find more help on Active X Control insertion in Fortran Code.

Any help would be appreciated.
Thanks

Sumit
The main line of code was:

retlog = DlgSetSub( dlg, IDC_AVIS2DCTRL1, Dplot )
and DPlot was a routine that works normally as an array visualizer subroutine when I am not using a dialog box
0 Kudos
Intel_C_Intel
Employee
712 Views
Hi Sumit,

I'm not sure what you are asking, but if you are trying to set up an event handler for an ActiveX control, you need to use DlgSetCtrlEventHandler rather than DlgSetSub. See the "Using ActiveX Controls" section of the "Using Dialogs" chapter of the Programmer's Guide.

Regards,
Leo
0 Kudos
Reply