I'm racking my brains for an answer to this one. Recompiling and linking a rather long program not recompiled since 2015 causes FTN95 to declare the routines GetDC and GetDeviceCaps missing at link time (WARNING The following symbols are missing), and if the resulting EXE is run, it fails with a missing_GetDC@4.
Rather oddly, if I make up a demonstrator:
OPTIONS (INTL)
PROGRAM DC
INCLUDE <WINDOWS.INS>
iHDC = GetDc (0) ! Monitor / Windows system
ixdpi = GetDeviceCaps (iHDC, LOGPIXELSX)
iydpi = GetDeviceCaps (iHDC, LOGPIXELSY)
WRITE(*,*) iHDC, ixdpi, iydpi
END
then it all works fine. I've checked in the long program that the INCLUDE is there, and indeed, the demonstrator is simply lines copied from the big program.
Using 32 bit and 8.40PE (also tried 8.30PE).
Any ideas that I could try?
Eddie