I am using DF 5.0. I have a problem to call a simple Dialog Box written in DLL from VB. It can be compiled, but can not be called by VB. (just shutdown the VB project). It appears DlgInit can not initialize the Dialog box. Maybe in version 6.x, one can use DlgInitWithResourcehandle, but in version 5.0D, there is no such function. From reference manual, I found Dlginit is compatible with Window Dll. My example below is working perfectly in QuickWin, but not in DLL. Can anyone help?
!dec$ attributes dllexport, alias : "dgbox1" :: dgbox1
type (dialog) dlg
retlog = DlgInit(idd_box,dlg)
if (.not. retlog) then
write (*,*) "Error: dialog not found"
retint = dlgmodal(dlg)
Also I used resource editor to created a Dialog and my VB codes are
Declare sub dgbox1 lib "dgbox.dll" () in Module and
call dgbox in Form