When using Treport and prew32.dll is not present, it produces this error:
- Code: Select all Expand view RUN
- Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: PREVIEW_PROC
Stack Calls
===========
Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 531 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 269 )
Called from: .\source\classes\REPORT.PRG => TREPORT:ACTIVATE( 886 )
It should be very interesting to modify method Activate() to check if prev32.dll /64 or preview.dll is there.
Current code is not working:
- Code: Select all Expand view RUN
- ::hOldRes := GetResources()
#ifdef __CLIPPER__
SET RESOURCES to "preview.dll"
#else
if ! IsWin64()
SET RESOURCES to "prev32.dll"
else
SET RESOURCES to "prev64.dll"
endif
#endif
if GetResources() < 32
#ifdef __CLIPPER__
MsgStop( "Preview.dll not found", "Error" )
#else
if ! IsWin64()
MsgStop( "Prev32.dll not found", "Error" )
else
MsgStop( "Prev64.dll not found", "Error" )
endif
#endif
SetResources( ::hOldRes )
return nil
endif
It does not show msgstop.
Thanks.