Software Archive
Read-only legacy content

Dialogs

Intel_C_Intel
Employee
555 Views
I tried to build up a simple Dialog Box. Here is my codes
USE DFLOGM
INCLUDE 'resource.FD'
TYPE (dialog) dlg
LOGICAL retlog
retlog = DLGINIT( IDD_TEMP, dlg )
retint = Dlgmodal
end

But when I compiled it, I got the following error message:

Configuration: dialbox - Win32 Debug--------------------
Compiling resources...
C:FORTRANFILEDIALBOXDIALBOX.RC(10) : fatal error RC1015: cannot open include file 'afxres.h'.
Error executing rc.exe.

dialbox.exe - 1 error(s), 0 warning(s)

Can anyone help me?
0 Kudos
2 Replies
Intel_C_Intel
Employee
555 Views
Hi,

afxres.h should be in the ...Microsoft Visual StudioVC98Include directory. Check to see if it is there. If it is not, re-install VF. If it is, from Developer Studio, select Tools -> Options -> Directories tab -> Show directories for: -> Include files. Make sure that the ...VC98Include directory is on the list. If it isn't, add it.

Regards,
Leo
0 Kudos
Intel_C_Intel
Employee
555 Views
leo, thanks. That was exactly the problem. I reinstalled it. It is working now.
0 Kudos
Reply