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

Error initializing application ... no resources in my Windows app

Andrew_Bond
Beginner
1,266 Views
I wonder if anyone can help me please? I am relatively new to Intel Visual Fortran and I am getting an error when I run my app (PGroupN.exe). The problem occurs after a call to DlgInit(IDD_PGROUPN_DIALOG,gdlg), which returns false.

I have got IDD_PGROUPN_DIALOG defined in a file PGroupN.rc included in the project. I get no build errors, but it appears that the resource compiler has not been called to produce a res file from my rc file. I do NOT have a 'PGroupN.res' file in my output folder and the executable does NOT have an icon attached to it (it appears in Windows Explorer with the default application icon), despite there being one in the project.

Does anyone know what I have done wrong? The project has been converted from Compaq Visual Fortran (where it works perfectly). This is a Windows app which uses a dialog as its main window.

Are there any sample Windows projects that I could look at to see what build flags I should have set.

I am running Intel VF under Visual Studio 2005.

Thanks in anticipation

Andrew Bond
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,266 Views
Andrew,

Welcome to the forum. I have heard of some users having a similar problem when converting a CVF project. I am not sure that there is a "build flag" that will help. Does the PGroupN.rc file show up in the Solution Explorer under Resource Files?

0 Kudos
Andrew_Bond
Beginner
1,266 Views
Steve

Thanks for the response. I have now solved the problem ... I upgraded to v11 (I was on v9) and installed the compiler into a clean install of Visual Studio 2008. Presto, my dialog is back after importing/upgrading the project. No code changes becessary.

I suspect something was broken on my other machine, either VS2005 or VF9 - but no matter, I am up and running again.

Andrew

0 Kudos
Steven_L_Intel1
Employee
1,266 Views
I'm glad to hear it.
0 Kudos
Reply