I wrote a simple Win32 application which uses the following codes to update a progress bar:
use dfwin
integer*2 umin, umax
integer*4 ret
......
ret = SendMessage(hWnd1, WM_USER + 1, 0, MAKELONG(uMin, uMax))
ret = SendMessage(hWnd1, WM_USER + 4, 20, 0)
......
I have used -winapp option and specified the following Win32 libraries to be linked with, but still got the error message of “unresolved external symbol _MakeLong@8”.
Which library had I missed? The PVF User Guide indicates that MakeLong belongs to the library/module “dfwbase”. Which library contains the functions defined in dfwbase.f90 module then?
I understand that MAKELONG is actually a macro in “WinDef.h” file, defined as
This is a bug. Please contact trs@pgroup.com with detail problem if you would like to get a temporary library so that you run link and compile your program. We have filed a TPR #14240 for this.
Please send mail to trs@pgroup.com and mention this posting. We will provide you a workaround until this gets fixed. We hope to get this fixed within the next few releases.