Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29249 Discussions

generating resource.fd from resource.h

chunky_lover_23
Beginner
1,029 Views
I'm trying to use IVF after years of semi-successfull CVF use.

I've used ResEDIt to edit and generate a dialog reource and have created the resource.h file and the resource.rc file (which compiles ok)

Depite following the "6 steps" rule with deftofd as advised in the help I cannot generate the resource.fd file

Any ideas (i've added the vfproj and build log files) ?

I'm NOT running under ADMIM on a Vista Workstation with the following software

Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: IDE Standard

Intel Visual Fortran Compiler Integration Package ID: w_cprof_p_11.0.072
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2005, 11.0.3453.2005, Copyright (C) 2002-2009 Intel Corporation
* Other names and brands may be claimed as the property of others.

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,029 Views
What happens if you manually create a resource.fd file (it can be empty), then modify the rc file? For some reason, it's not running the custom build step to build resource.fd.
0 Kudos
chunky_lover_23
Beginner
1,029 Views
the error messages associated with not having the resource.fd file included dissapear and the resource .fd file is updated (good). But the contents of the resource.fd file do not seem correct - specifically there is no reference to the "ok" or "cancel" buttons

integer, parameter :: IDD_DIALOG1 = 100

integer, parameter :: $_WIN32 = 1

character(len=4), parameter :: IDC_STATIC = ("(-1)")

... is this what would be expected based on the .rc file:

// Generated by ResEdit 1.5.4

// Copyright (C) 2006-2010

// http://www.resedit.net

#include

#include

#include

#include "resource.h"

//

// Dialog resources

//

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

IDD_DIALOG1 DIALOG 0, 0, 186, 95

STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU

CAPTION "Dialog"

FONT 8, "Ms Shell Dlg"

{

DEFPUSHBUTTON "OK", IDOK, 46, 58, 50, 14

PUSHBUTTON "Cancel", IDCANCEL, 128, 58, 50, 14

LTEXT "sfsfsfsf", IDC_STATIC, 23, 17, 22, 8, SS_LEFT

}

//

// String Table resources

//

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

STRINGTABLE

{

0 " "

}

0 Kudos
Steven_L_Intel1
Employee
1,029 Views
What does the resource.h look like? That's what deftofd looks at.
0 Kudos
chunky_lover_23
Beginner
1,029 Views
You're correct - reource.h also did not reference the ok or cancel buttons. Deleting and re-creating these buttons in ResEDIT and re-saving the resource.h file fixed the issue.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,029 Views
If my memory serves me well, IDOK and IDCANCEL are "magic" constants defined in DFWINTY (and somewhere beneath windows.h and should not be redefined in the resource.h file.
0 Kudos
Reply